CSE115.Pacman
Class BoardPositions

java.lang.Object
  extended by CSE115.Pacman.BoardPositions

public final class BoardPositions
extends Object

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

Author:
Ben Robboy

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

WALLS

public static final ArrayList<Position> WALLS
An ArrayList of the Positions of the walls. Basically, any impenetrable cell. The blue stuff.


GHOST_CAGE

public static final ArrayList<Position> GHOST_CAGE
An ArrayList of the Positions of the ghost cage which includes the inside and door of the ghost cage.


POWER_PILLS

public static final ArrayList<Position> POWER_PILLS
An ArrayList of the locations of the four power pills.


PASSAGEWAY

public static final ArrayList<Position> PASSAGEWAY
An ArrayList of the Positions of the horizontal passageway through which PacMan can wrap around.


INNER_SQUARE

public static final ArrayList<Position> INNER_SQUARE
An ArrayList of the Positions of the inner section of the board, minus the ghost cage. This plus the ghost cage truly is the inner square (well, minus the walls). It will help rule out places that a dot CANNOT go.


OUTSIDE

public static final ArrayList<Position> OUTSIDE
An ArrayList of the Positions of these are the bizarre little courtyards that no object can go in. They're tangential to the passageway.

Constructor Detail

BoardPositions

public BoardPositions()