|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.itu.smds.torusman.LocalTorus
public class LocalTorus
The Class LocalTorus.
Constructor Summary | |
---|---|
LocalTorus(byte[][][][] grid)
Constructor. |
Method Summary | |
---|---|
Scores |
addPoints(byte manId,
byte teamId,
int points)
Add points to team score. |
Board |
getBoard(Man man)
(non-Javadoc) |
void |
moveTo(ManData manData,
byte X,
byte Y)
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalTorus(byte[][][][] grid)
grid
- Initial grid data. grid[X][Y][y][x]
holds data for position (x,y) in the board
located at (X,Y). Note that all boards must
have the same dimensions, and that each column
of boards must have the same height.Method Detail |
---|
public Scores addPoints(byte manId, byte teamId, int points)
Torus
addPoints
in interface Torus
manId
- the man idteamId
- the team idpoints
- the points
public Board getBoard(Man man)
getBoard
in interface Torus
man
- the man
Torus.getBoard(dk.itu.smds.torusman.Man)
public void moveTo(ManData manData, byte X, byte Y)
moveTo
in interface Torus
manData
- the man dataX
- the xY
- the yTorus.moveTo(dk.itu.smds.torusman.ManData, byte, byte)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |