|
|||||||||
| 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
| 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)
Get a board (and indicate man has moved to this board). |
void |
moveTo(ManData manData,
byte X,
byte Y)
Indicate that a man has moved to a new position (x,y) on board (X,Y). |
| 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 Toruspublic Board getBoard(Man man)
Torus
getBoard in interface Torus
public void moveTo(ManData manData,
byte X,
byte Y)
Torus
moveTo in interface Torus
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||