Package VASSAL.chat
Interface ChatServerConnection
- All Superinterfaces:
ServerConnection
- All Known Subinterfaces:
LockableChatServerConnection
- All Known Implementing Classes:
ClientTest,DummyClient,DynamicClient,HybridClient,JabberClient,NodeClient,NodeHybridClient,P2PClient,SocketNodeClient
public interface ChatServerConnection extends ServerConnection
Specialized interface for chat-room server connections
- Author:
- rkinney
-
Field Summary
Fields Modifier and Type Field Description static StringAVAILABLE_ROOMSProperty representing the list of all roomsstatic StringDEFAULT_ROOM_NAMEstatic StringINCOMING_MSGProperty representing a message received from the remove serverstatic StringPLAYER_INFOProperty representing the current player's informationstatic StringROOMProperty representing the currently-occupied roomstatic StringSTATUSProperty representing an informational message (e.g.static StringSTATUS_SERVERProperty representing the StatusServer implementationFields inherited from interface VASSAL.build.module.ServerConnection
CONNECTED -
Method Summary
Modifier and Type Method Description Room[]getAvailableRooms()Return an array of all rooms on the serverRoomgetRoom()Return the room currently occupied by the playerPlayergetUserInfo()Return a Player instance representing the current playervoidsendTo(Player recipient, Command c)Send a Command to a particular playervoidsetRoom(Room r)Join the given roomvoidsetUserInfo(Player p)Set the Player instance representing this playerMethods inherited from interface VASSAL.build.module.ServerConnection
addPropertyChangeListener, isConnected, sendToOthers, setConnected
-
Field Details
-
ROOM
Property representing the currently-occupied room- See Also:
- Constant Field Values
-
AVAILABLE_ROOMS
Property representing the list of all rooms- See Also:
- Constant Field Values
-
STATUS
Property representing an informational message (e.g. "Connection succeeded")- See Also:
- Constant Field Values
-
PLAYER_INFO
Property representing the current player's information- See Also:
- Constant Field Values
-
INCOMING_MSG
Property representing a message received from the remove server- See Also:
- Constant Field Values
-
STATUS_SERVER
Property representing the StatusServer implementation- See Also:
- Constant Field Values
-
DEFAULT_ROOM_NAME
- See Also:
- Constant Field Values
-
-
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
Send a Command to a particular player
-