Class DynamicClient
java.lang.Object
VASSAL.chat.HybridClient
VASSAL.chat.DynamicClient
- All Implemented Interfaces:
ServerConnection, ChatServerConnection, PlayerEncoder, ChatControlsInitializer
Refreshes every time the user attempts to connect
- Author:
- rkinney
-
Field Summary
Fields inherited from class HybridClient
controls, currentIcon, currentText, defaultRoom, delegate, propSupportModifier and TypeFieldDescriptionprotected ChatServerControlsprotected Iconprotected Stringprotected Stringprotected ChatServerConnectionprotected PropertyChangeSupportFields inherited from interface ChatServerConnection
AVAILABLE_ROOMS, DEFAULT_ROOM_NAME, INCOMING_MSG, PLAYER_INFO, ROOM, STATUS, STATUS_SERVERModifier and TypeFieldDescriptionstatic final StringProperty representing the list of all roomsstatic final Stringstatic final StringProperty representing a message received from the remove serverstatic final StringProperty representing the current player's informationstatic final StringProperty representing the currently-occupied roomstatic final StringProperty representing an informational message (e.g.static final StringProperty representing the StatusServer implementationFields inherited from interface ServerConnection
CONNECTED, CONNECTION_LOST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ChatServerConnectionvoidsetConnected(boolean connect) Methods inherited from class HybridClient
addPropertyChangeListener, fireStatus, getAvailableRooms, getDelegate, getRoom, getUserInfo, initializeControls, isConnected, playerToString, sendTo, sendToOthers, setDelegate, setRoom, setUserInfo, stringToPlayer, uninitializeControls, updateDisplayControlsModifier and TypeMethodDescriptionvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener l) Register a PropertyChangeListener.protected voidfireStatus(String msg) 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 servervoidsetDelegate(ChatServerConnection newDelegate) voidJoin the given roomvoidSet the Player instance representing this playervoiduninitializeControls(ChatServerControls controls) Remove all previously-registered event listenersvoidupdateDisplayControls(Icon icon, String text)
-
Constructor Details
-
DynamicClient
public DynamicClient()
-
-
Method Details
-
buildDelegate
- Throws:
IOException
-
setConnected
public void setConnected(boolean connect) - Specified by:
setConnectedin interfaceServerConnection- Overrides:
setConnectedin classHybridClient
-