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 String
AVAILABLE_ROOMS
Property representing the list of all roomsstatic String
DEFAULT_ROOM_NAME
static String
INCOMING_MSG
Property representing a message received from the remove serverstatic String
PLAYER_INFO
Property representing the current player's informationstatic String
ROOM
Property representing the currently-occupied roomstatic String
STATUS
Property representing an informational message (e.g.static String
STATUS_SERVER
Property 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 serverRoom
getRoom()
Return the room currently occupied by the playerPlayer
getUserInfo()
Return a Player instance representing the current playervoid
sendTo(Player recipient, Command c)
Send a Command to a particular playervoid
setRoom(Room r)
Join the given roomvoid
setUserInfo(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
-