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 Node
add, build, buildWithInfo, getChild, getChildren, getDescendant, getInfoProperty, getLeafDescendants, getParent, getPath, getPathAndInfo, remove, setInfo, setParent, toStringModifier and TypeMethodDescriptionvoidstatic NodeConstructs from a path name.buildWithInfo(Node base, String pathAndInfo) Builds a Node from a pathAndInfo stringreturn the child node with the given id, or null if no matchNode[]getDescendant(String path) Return the descendant node with the given path relative to this nodegetInfoProperty(String propName) Node[]getPath()Return a string in the format parentId=parentInfo/childId=childInfo/...voidvoidvoidtoString()
-
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
-