|
Public Member Functions |
| GameBoard () |
| Simple constructor, takes no parameters.
|
void | addGridNode (GridNode n) |
| Adds a GridNode to this board.
|
void | paint (Graphics g) |
| Paints the board by calling paint on all GridNodes, pacman, and each ghost.
|
boolean | advanceFrame () |
| advance all actors one frame:
|
void | setPacman (PacmanActor p) |
PacmanActor | getPacman () |
void | addGhost (GhostActor ghost) |
| Adds a GhostActor to this board.
|
Public Attributes |
PacmanActor | pacman_ |
| The pacman for this board.
|
Static Public Attributes |
final int | ALIVE = 0 |
| Enum for a desired state.
|
final int | DEAD = 1 |
Private Attributes |
Vector | nodes_ |
| A vector containing all of the GridNodes in this board.
|
Vector | ghosts_ |
| A vector containing all of the active GhostActors on this board.
|
int | state_ |
| The state of the GameBoard state can be : ALIVE, DEAD.
|