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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
getInfo()
void
handleMessage
(String line) int
hashCode()
boolean
isLeaf()
void
void
socketClosed
(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:
handleMessage
in interfaceSocketWatcher
-
socketClosed
- Specified by:
socketClosed
in interfaceSocketWatcher
-