|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Man
Interface for structure holding current board for a man, along with callback handles for contacting the man.
Method Summary | |
---|---|
void |
deserialize(java.io.DataInputStream in)
Deserialize this man from a stream. |
byte |
getManId()
The id of the man. |
byte |
getX()
X coordinate of current board that the man is on. |
byte |
getY()
Y coordinate of current board that the man is on. |
void |
movedTo(ManData manData)
Callback handle to be invoked when a man has moved to a new position. |
void |
serialize(java.io.DataOutputStream out)
Serialize this man to a stream. |
void |
updatePoints(Scores scores)
Callback handle to be invoked when scores have been updated. |
Method Detail |
---|
byte getManId()
byte getX()
byte getY()
void movedTo(ManData manData)
manData
- the man datavoid updatePoints(Scores scores)
scores
- Tablevoid serialize(java.io.DataOutputStream out) throws java.io.IOException
out
- the out
java.io.IOException
- Signals that an I/O exception has occurred.void deserialize(java.io.DataInputStream in) throws java.io.IOException
in
- the in
java.io.IOException
- Signals that an I/O exception has occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |