Package de.coreengine.network
Class TCPClient
- java.lang.Object
-
- de.coreengine.network.TCPClient
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTCPClient.HandshakeResultResult 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 StringgetPlayerName()static HashMap<String,PlayerGameObject>getPlayers()static booleanisRunning()static voidjoin()Joining client on the current scenevoidrun()
-
-
-
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
-
-