Package VASSAL.chat
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
Modifier and TypeFieldDescriptionstatic final String
Property representing the list of all roomsstatic final String
static final String
Property representing a message received from the remove serverstatic final String
Property representing the current player's informationstatic final String
Property representing the currently-occupied roomstatic final String
Property representing an informational message (e.g.static final String
Property 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 playervoid
Send a Command to a particular playervoid
Join the given roomvoid
Set 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
-