Class PlayerNode
java.lang.Object
VASSAL.chat.node.Node
VASSAL.chat.node.PlayerNode
- All Implemented Interfaces:
MsgSender,SocketWatcher
Node representing a single player.
A leaf node in a hierarchical server.
Reads and writes directly to a socket
getInfo() returns an encoded Properties object with real name, profile, etc.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()getInfo()voidhandleMessage(String line) inthashCode()booleanisLeaf()voidvoidsocketClosed(SocketHandler handler) Methods inherited from class VASSAL.chat.node.Node
add, build, buildWithInfo, getChild, getChildren, getDescendant, getInfoProperty, getLeafDescendants, getParent, getPath, getPathAndInfo, remove, setInfo, setParent, toString
-
Field Details
-
id
-
info
-
-
Constructor Details
-
PlayerNode
- Throws:
IOException
-
-
Method Details
-
getId
-
isLeaf
-
send
-
getInfo
-
equals
-
hashCode
-
handleMessage
- Specified by:
handleMessagein interfaceSocketWatcher
-
socketClosed
- Specified by:
socketClosedin interfaceSocketWatcher
-