Package VASSAL.chat
Class DummyClient
java.lang.Object
VASSAL.chat.DummyClient
- All Implemented Interfaces:
ServerConnection
,ChatServerConnection
,ChatControlsInitializer
Empty server
- Author:
- rkinney
-
Field Summary
Fields inherited from interface VASSAL.chat.ChatServerConnection
AVAILABLE_ROOMS, DEFAULT_ROOM_NAME, INCOMING_MSG, PLAYER_INFO, ROOM, STATUS, STATUS_SERVER
Fields inherited from interface VASSAL.build.module.ServerConnection
CONNECTED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPropertyChangeListener(String propertyName, PropertyChangeListener l)
Register a PropertyChangeListener.Room[]
Return an array of all rooms on the servergetRoom()
Return the room currently occupied by the playerReturn a Player instance representing the current playervoid
initializeControls(ChatServerControls controls)
Register all event listenersboolean
void
Send a Command to a particular playervoid
sendToOthers(Command c)
Send a command to other players on the servervoid
setConnected(boolean connect)
void
Join the given roomvoid
setUserInfo(Player playerInfo)
Set the Player instance representing this playervoid
uninitializeControls(ChatServerControls controls)
Remove all previously-registered event listeners
-
Constructor Details
-
DummyClient
public DummyClient()
-
-
Method Details
-
getAvailableRooms
Description copied from interface:ChatServerConnection
Return an array of all rooms on the server- Specified by:
getAvailableRooms
in interfaceChatServerConnection
-
getRoom
Description copied from interface:ChatServerConnection
Return the room currently occupied by the player- Specified by:
getRoom
in interfaceChatServerConnection
-
getStatusServer
-
sendTo
Description copied from interface:ChatServerConnection
Send a Command to a particular player- Specified by:
sendTo
in interfaceChatServerConnection
-
setRoom
Description copied from interface:ChatServerConnection
Join the given room- Specified by:
setRoom
in interfaceChatServerConnection
-
addPropertyChangeListener
Description copied from interface:ServerConnection
Register a PropertyChangeListener. Changes to connection status triggers a PropertyChangeEvent, and concrete implementations may define other properties- Specified by:
addPropertyChangeListener
in interfaceServerConnection
-
isConnected
public boolean isConnected()- Specified by:
isConnected
in interfaceServerConnection
-
sendToOthers
Description copied from interface:ServerConnection
Send a command to other players on the server- Specified by:
sendToOthers
in interfaceServerConnection
-
setConnected
public void setConnected(boolean connect)- Specified by:
setConnected
in interfaceServerConnection
-
getUserInfo
Description copied from interface:ChatServerConnection
Return a Player instance representing the current player- Specified by:
getUserInfo
in interfaceChatServerConnection
-
setUserInfo
Description copied from interface:ChatServerConnection
Set the Player instance representing this player- Specified by:
setUserInfo
in interfaceChatServerConnection
-
initializeControls
Description copied from interface:ChatControlsInitializer
Register all event listeners- Specified by:
initializeControls
in interfaceChatControlsInitializer
-
uninitializeControls
Description copied from interface:ChatControlsInitializer
Remove all previously-registered event listeners- Specified by:
uninitializeControls
in interfaceChatControlsInitializer
-