Class ClientTest
java.lang.Object
VASSAL.chat.peer2peer.P2PClient
VASSAL.chat.peer2peer.ClientTest
- All Implemented Interfaces:
PropertyChangeListener, Runnable, EventListener, org.litesoft.p2pchat.UserDialog, ServerConnection, ChatServerConnection, PlayerEncoder, ChatControlsInitializer
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionClientTest(PeerPool pool, WelcomeMessageServer welcomer, int changeRoom, int numRooms, FileWriter log) -
Method Summary
Methods inherited from class P2PClient
addPropertyChangeListener, addPropertyChangeListener, fireStatus, getAvailableRooms, getRoom, getRoomMgr, getStatusServer, getUserInfo, initializeControls, isConnected, playerToString, sendTo, sendToAll, sendToOthers, sendToOthers, setActivePeerManager, setConnected, setPendingPeerManager, setRoom, setUserInfo, showCHAT, showConnect, showConnectFailed, showDisconnect, showHELO, showNAME, showPMSG, showStreamsFailed, showUnrecognized, stringToPlayer, uninitializeControlsModifier and TypeMethodDescriptionvoidvoidaddPropertyChangeListener(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 playervoidvoidsendToOthers(String msg) voidSend a command to other players on the servervoidsetActivePeerManager(org.litesoft.p2pchat.ActivePeerManager pActivePeerManager) voidsetConnected(boolean connect) voidsetPendingPeerManager(org.litesoft.p2pchat.PendingPeerManager pPendingPeerManager) voidJoin the given roomvoidSet the Player instance representing this playervoidvoidshowConnect(org.litesoft.p2pchat.PeerInfo pPeerInfo) voidshowConnectFailed(org.litesoft.p2pchat.PeerInfo pPeerInfo) voidshowDisconnect(org.litesoft.p2pchat.PeerInfo pPeerInfo) voidshowHELO(org.litesoft.p2pchat.PeerInfo pPeerInfo) voidshowNAME(org.litesoft.p2pchat.PeerInfo pPeerInfo) voidvoidshowStreamsFailed(org.litesoft.p2pchat.PeerInfo pPeerInfo) voidshowUnrecognized(org.litesoft.p2pchat.PeerInfo pPeerInfo, String pBadMessage) voiduninitializeControls(ChatServerControls controls) Remove all previously-registered event listeners
-
Constructor Details
-
ClientTest
public ClientTest(PeerPool pool, WelcomeMessageServer welcomer, int changeRoom, int numRooms, FileWriter log)
-
-
Method Details
-
run
-
propertyChange
- Specified by:
propertyChangein interfacePropertyChangeListener
-
report
-