Package de.coreengine.network
Class TCPClient
- java.lang.Object
-
- de.coreengine.network.TCPClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TCPClient.HandshakeResult
Result values for a tcp handshake
-
Constructor Summary
Constructors Constructor Description TCPClient()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getPlayerName()
static HashMap<String,PlayerGameObject>
getPlayers()
static boolean
isRunning()
static void
join()
Joining client on the current scenevoid
run()
-
-
-
Method Detail
-
isRunning
public static boolean isRunning()
- Returns:
- Is the client still connected to the server
-
getPlayerName
public static String getPlayerName()
- Returns:
- Player name on the connected server
-
getPlayers
public static HashMap<String,PlayerGameObject> getPlayers()
- Returns:
- List of all other players
-
join
public static void join()
Joining client on the current scene
-
-