|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.itu.smds.torusman.ManData
public class ManData
Data structure for holding information on a man's current position and direction.
Field Summary | |
---|---|
byte |
manId
The man id. |
byte |
teamId
The team id. |
byte |
x
Current x coordinate within the board. |
byte |
xdir
Current horizontal direction (-1/0/1). |
byte |
y
Current y coordinate within the board. |
byte |
ydir
Current vertical direction (-1/0/1). |
Constructor Summary | |
---|---|
ManData()
Nullary constructor, only used for deserialization. |
|
ManData(byte manId,
byte teamId,
byte x,
byte y,
byte xdir,
byte ydir)
Constructor. |
Method Summary | |
---|---|
void |
deserialize(java.io.DataInputStream in)
Deserialize this object from a stream. |
void |
serialize(java.io.DataOutputStream out)
Serialize this object to a stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte manId
public byte teamId
public byte x
public byte y
public byte xdir
public byte ydir
Constructor Detail |
---|
public ManData(byte manId, byte teamId, byte x, byte y, byte xdir, byte ydir)
manId
- the man idteamId
- the team idx
- the xy
- the yxdir
- the xdirydir
- the ydirpublic ManData()
Method Detail |
---|
public void serialize(java.io.DataOutputStream out) throws java.io.IOException
out
- the out
java.io.IOException
- Signals that an I/O exception has occurred.public 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 |