Class OfficialNodeClient
java.lang.Object
VASSAL.chat.node.NodeClient
VASSAL.chat.node.OfficialNodeClient
- All Implemented Interfaces:
ServerConnection, ChatServerConnection, LockableChatServerConnection, SocketWatcher, PlayerEncoder, ChatControlsInitializer
-
Field Summary
Fields inherited from class NodeClient
allRooms, checker, compressionLimit, currentRoom, defaultRoomName, encoder, host, inviteEncoder, me, moduleName, nameChangeListener, pendingSynchToRoom, playerId, playerStatusControls, port, privateChatEncoder, profileChangeListener, propSupport, roomControls, soundEncoder, synchEncoder, welcomer, ZIP_HEADERModifier and TypeFieldDescriptionprotected NodeRoom[]protected MainRoomCheckerprotected intprotected SimpleRoomprotected Stringprotected CommandEncoderprotected final Stringprotected InviteEncoderprotected NodePlayerprotected Stringprotected PropertyChangeListenerprotected NodeRoomprotected Stringprotected SimpleStatusControlsInitializerprotected final intprotected PrivateChatEncoderprotected PropertyChangeListenerprotected PropertyChangeSupportprotected RoomInteractionControlsInitializerprotected SoundEncoderprotected SynchEncoderprotected final WelcomeMessageServerstatic final StringFields 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
ConstructorsConstructorDescriptionOfficialNodeClient(String moduleName, String playerId, CommandEncoder encoder, String host, int port, MessageBoard msgSvr, WelcomeMessageServer welcomer) -
Method Summary
Modifier and TypeMethodDescriptionvoidinitializeControls(ChatServerControls controls) Register all event listenersvoiduninitializeControls(ChatServerControls controls) Remove all previously-registered event listenersMethods inherited from class NodeClient
addPropertyChangeListener, addPropertyChangeListener, checkCompatibility, checkCompatibility, cleanVersion, closeConnection, doInvite, doKick, forward, getAvailableRooms, getDefaultRoomName, getMyInfo, getRoom, getUserInfo, handleMessage, handleMessageFromServer, initializeConnection, isConnected, isDefaultRoom, isInvitable, isKickable, isOwner, lockRoom, playerToString, registerNewConnection, send, sendInvite, sendRoomInfo, sendStats, sendTo, sendToAll, sendToOthers, sendToOthers, setConnected, setDefaultRoomName, setRoom, setRoom, setUserInfo, socketClosed, stringToPlayer, updateRoomsModifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener l) Register a PropertyChangeListener.voidcheckCompatibility(NodeRoom targetRoom, boolean compatible, List<String> errors) Deprecated.Use boolean checkCompatibility(NodeRoom targetRoom, Listerrors) booleancheckCompatibility(NodeRoom targetRoom, List<String> errors) static StringcleanVersion(String version) Clean off an ' (Editing)' suffix added to the module version numberprotected voidvoidProcess an invitation request from a player to join a roomvoidKick a player from this roomvoidRoom[]Return an array of all rooms on the serverReturn the name of the default roomgetRoom()Return the room currently occupied by the playerReturn a Player instance representing the current playervoidhandleMessage(String msg) voidProcess a message received from the serverprotected voidbooleanbooleanIs specified room the default room?booleanisInvitable(Player invitee) Can a player be invited to this room by me?booleanisKickable(Player kickee) Can a player be kicked from this room by me?booleanisOwner()Return true if 1.voidLock/Unlock the given roomprotected voidvoidvoidsendInvite(Player invitee) Send Invitation to another player to join the current roomvoidprotected voidvoidSend a Command to a particular playervoidvoidsendToOthers(String msg) voidSend a command to other players on the servervoidsetConnected(boolean connect) voidsetDefaultRoomName(String defaultRoomName) voidJoin the given roomvoidvoidSet the Player instance representing this playervoidsocketClosed(SocketHandler handler) protected voidupdateRooms(Node module)
-
Constructor Details
-
OfficialNodeClient
public OfficialNodeClient(String moduleName, String playerId, CommandEncoder encoder, String host, int port, MessageBoard msgSvr, WelcomeMessageServer welcomer)
-
-
Method Details
-
initializeControls
Description copied from interface:ChatControlsInitializerRegister all event listeners- Specified by:
initializeControlsin interfaceChatControlsInitializer- Overrides:
initializeControlsin classNodeClient
-
uninitializeControls
Description copied from interface:ChatControlsInitializerRemove all previously-registered event listeners- Specified by:
uninitializeControlsin interfaceChatControlsInitializer- Overrides:
uninitializeControlsin classNodeClient
-