|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCSE115.Pacman.BoardPositions
public final class BoardPositions
This "library" class will facilitate the implementation of PacMan by taking care of the tedious determination of idiosyncratic board locations. One might even say it takes the "Bored" out of "Board." But that person would be a damn fool.
This class assumes a 24x19 layout.
The Board is split into several sections, which help articulate the otherwise quirky and indescribable nature of the standard PacMan gameboard:
Created: February 2006
| Field Summary | |
|---|---|
static ArrayList<Position> |
GHOST_CAGE
An ArrayList of the Positions of the ghost cage which includes the inside and door of the ghost cage. |
static ArrayList<Position> |
INNER_SQUARE
An ArrayList of the Positions of the inner section of the board, minus the ghost cage. |
static ArrayList<Position> |
OUTSIDE
An ArrayList of the Positions of these are the bizarre little courtyards that no object can go in. |
static ArrayList<Position> |
PASSAGEWAY
An ArrayList of the Positions of the horizontal passageway through which PacMan can wrap around. |
static ArrayList<Position> |
POWER_PILLS
An ArrayList of the locations of the four power pills. |
static ArrayList<Position> |
WALLS
An ArrayList of the Positions of the walls. |
| Constructor Summary | |
|---|---|
BoardPositions()
|
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ArrayList<Position> WALLS
public static final ArrayList<Position> GHOST_CAGE
public static final ArrayList<Position> POWER_PILLS
public static final ArrayList<Position> PASSAGEWAY
public static final ArrayList<Position> INNER_SQUARE
public static final ArrayList<Position> OUTSIDE
| Constructor Detail |
|---|
public BoardPositions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||