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_SERVERFields inherited from interface VASSAL.build.module.ServerConnection
CONNECTED, CONNECTION_LOST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(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 playervoidinitializeControls(ChatServerControls controls) Register all event listenersbooleanvoidSend a Command to a particular playervoidSend a command to other players on the servervoidsetConnected(boolean connect) voidJoin the given roomvoidsetUserInfo(Player playerInfo) Set the Player instance representing this playervoiduninitializeControls(ChatServerControls controls) Remove all previously-registered event listeners
-
Constructor Details
-
DummyClient
public DummyClient()
-
-
Method Details
-
getAvailableRooms
Description copied from interface:ChatServerConnectionReturn an array of all rooms on the server- Specified by:
getAvailableRoomsin interfaceChatServerConnection
-
getRoom
Description copied from interface:ChatServerConnectionReturn the room currently occupied by the player- Specified by:
getRoomin interfaceChatServerConnection
-
getStatusServer
-
sendTo
Description copied from interface:ChatServerConnectionSend a Command to a particular player- Specified by:
sendToin interfaceChatServerConnection
-
setRoom
Description copied from interface:ChatServerConnectionJoin the given room- Specified by:
setRoomin interfaceChatServerConnection
-
addPropertyChangeListener
Description copied from interface:ServerConnectionRegister a PropertyChangeListener. Changes to connection status triggers a PropertyChangeEvent, and concrete implementations may define other properties- Specified by:
addPropertyChangeListenerin interfaceServerConnection
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceServerConnection
-
sendToOthers
Description copied from interface:ServerConnectionSend a command to other players on the server- Specified by:
sendToOthersin interfaceServerConnection
-
setConnected
public void setConnected(boolean connect) - Specified by:
setConnectedin interfaceServerConnection
-
getUserInfo
Description copied from interface:ChatServerConnectionReturn a Player instance representing the current player- Specified by:
getUserInfoin interfaceChatServerConnection
-
setUserInfo
Description copied from interface:ChatServerConnectionSet the Player instance representing this player- Specified by:
setUserInfoin interfaceChatServerConnection
-
initializeControls
Description copied from interface:ChatControlsInitializerRegister all event listeners- Specified by:
initializeControlsin interfaceChatControlsInitializer
-
uninitializeControls
Description copied from interface:ChatControlsInitializerRemove all previously-registered event listeners- Specified by:
uninitializeControlsin interfaceChatControlsInitializer
-