Interface ChatServerConnection
- All Superinterfaces:
ServerConnection
- All Known Subinterfaces:
LockableChatServerConnection
- All Known Implementing Classes:
ClientTest,DummyClient,DynamicClient,HybridClient,NodeClient,OfficialNodeClient,P2PClient,PrivateNodeClient
Specialized interface for chat-room server connections
- Author:
- rkinney
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty representing the list of all roomsstatic final Stringstatic final StringProperty representing a message received from the remove serverstatic final StringProperty representing the current player's informationstatic final StringProperty representing the currently-occupied roomstatic final StringProperty representing an informational message (e.g.static final StringProperty representing the StatusServer implementationFields inherited from interface VASSAL.build.module.ServerConnection
CONNECTED, CONNECTION_LOST -
Method Summary
Modifier and TypeMethodDescriptionRoom[]Return an array of all rooms on the servergetRoom()Return the room currently occupied by the playerReturn a Player instance representing the current playervoidSend a Command to a particular playervoidJoin the given roomvoidSet the Player instance representing this playerMethods inherited from interface VASSAL.build.module.ServerConnection
addPropertyChangeListener, isConnected, sendToOthers, setConnected
-
Field Details
-
ROOM
-
AVAILABLE_ROOMS
-
STATUS
Property representing an informational message (e.g. "Connection succeeded")- See Also:
-
PLAYER_INFO
-
INCOMING_MSG
Property representing a message received from the remove server- See Also:
-
STATUS_SERVER
-
DEFAULT_ROOM_NAME
- See Also:
-
-
Method Details
-
getRoom
Room getRoom()Return the room currently occupied by the player -
setRoom
Join the given room -
getAvailableRooms
Room[] getAvailableRooms()Return an array of all rooms on the server -
getUserInfo
Player getUserInfo()Return a Player instance representing the current player -
setUserInfo
Set the Player instance representing this player -
sendTo
-