|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--zinger.nibbles.Field.GridMirror
Field Summary | |
SpaceOccupant[][] |
grid
Representation of the real grid that is stored in the field object. |
private Field.GridChange |
lastChange
|
Constructor Summary | |
Field.GridMirror()
|
Method Summary | |
(package private) void |
gridChange(int x,
int y,
SpaceOccupant occupant)
|
void |
validate()
Goes through the string of changes and updates the grid accordingly. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public final SpaceOccupant[][] grid
validate
method should be called.validate()
private Field.GridChange lastChange
Constructor Detail |
public Field.GridMirror()
Method Detail |
void gridChange(int x, int y, SpaceOccupant occupant)
x
- X-coordinate of the grid spacey
- Y-coordinate of the grid spaceoccupant
- present space occupantpublic void validate()
grid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |