A B C D E F G I K L M N P R S T V W Z

A

a - Variable in class pacman.engine.Food
The appearance of the cookie
a - Variable in class pacman.engine.Fruit
The appearance of the fruit
a - Variable in class pacman.engine.Ghost
The appearance of the ghost
a - Variable in class pacman.engine.Wall
The appearance of the wall section
actionPerformed(ActionEvent) - Method in class pacman.menu.MenuPanel.Listener
 
addButton(MenuFunction, JPanel) - Method in class pacman.menu.MenuPanel
General method to add a button to the MenuPanel.
animStart - Variable in class pacman.engine.Physics
Keeps track of what frame the current animation started on

B

buffer - Variable in class pacman.engine.Radar
 

C

c - Variable in class pacman.engine.Ghost
The color of the ghost (used in the appearance)
c3d - Variable in class pacman.engine.World
Holds the display to be rendered to the screen
colors - Variable in class pacman.engine.Radar
Array of Colors used in the Radar
Constants - Class in pacman.engine
A class to hold the constants used in the program.
Constants() - Constructor for class pacman.engine.Constants
 
content - Variable in class pacman.engine.World
Contains the scene objects (walls, ghosts, etc.)
createRadar() - Method in class pacman.engine.World
Initializes the Radar class.
createScene() - Method in class pacman.engine.World
Reads in the level's map file and parses it into scene objects, wrapping each object in its own TransformGroup and adding that TransformGroup to the scene's primary TransformGroup, which is then added to the scene's BranchGroup.

D

detectWallCollisions() - Method in class pacman.engine.Radar
Handles the scene's collision detection with the walls, ensuring that players do not move through them.
Direction - Class in pacman.engine
Differentiates between the four cardinal directions.
Direction() - Constructor for class pacman.engine.Direction
 
direction - Variable in class pacman.engine.World
Direction the player is facing; initially north
drawStuff() - Method in class pacman.engine.Radar
Draws the Radar to the local buffer, which is then updated to the screen by the paintComponent method.

E

EAST - Static variable in class pacman.engine.Direction
 
eat(Object) - Method in class pacman.engine.World
Removes a Food or Fruit object from the scene.
execute() - Method in class pacman.menu.MenuFunction.Control
 
execute() - Method in class pacman.menu.MenuFunction
Abstract execute method; each MenuFunction contains this method and implements its own code to perform its action.
execute() - Method in class pacman.menu.MenuFunction.Load_Game
 
execute() - Method in class pacman.menu.MenuFunction.New_Game
 
execute() - Method in class pacman.menu.MenuFunction.Quit
 
execute() - Method in class pacman.menu.MenuFunction.Save_Game
 
execute() - Method in class pacman.menu.MenuFunction.Sound
 
execute() - Method in class pacman.menu.MenuFunction.View_Scores
 

F

flag - Variable in class pacman.engine.Physics
Determines whether to turn left (-1), turn right (1), turn around (-2 or 2) or move (0)
Food - Class in pacman.engine
A class for the cookie objects in the scene.
Food(int, int) - Constructor for class pacman.engine.Food
Creates a new cookie (a Sphere) at the specified location.
food - Static variable in class pacman.engine.World
Collection of the food objects
frame - Variable in class pacman.engine.Physics
Keeps track of which frame of the animation is being rendered
framelength - Static variable in class pacman.engine.Constants
Fixed framerate of 75fps (in milliseconds per frame)
framerate - Static variable in class pacman.engine.Constants
Fixed framerate of 75fps (in #frames per second)
Fruit - Class in pacman.engine
A class for the fruit objects in the scene.
Fruit(int, int) - Constructor for class pacman.engine.Fruit
Creates a fruit (a Sphere) at the specified location.
fruit - Static variable in class pacman.engine.World
Collection of the fruit objects
functions - Variable in class pacman.menu.MenuPanel
A constant array of the MenuFunction commands.

G

Game - Class in pacman.engine
The application's driver class; starts the program and creates the menu.
Game() - Constructor for class pacman.engine.Game
 
GD - Static variable in class pacman.engine.Constants
Screen device
get2D() - Method in class pacman.engine.Food
Returns a 2D representation (a Rectangle, despite the object being a Sphere) of the cookie.
get2D() - Method in class pacman.engine.Fruit
Returns the 2D representation (a Rectangle, despite the fruit being a Sphere) of the fruit.
get2D() - Method in class pacman.engine.Ghost
Returns a 2D representation (a Rectangle) of the ghost.
get2D() - Method in class pacman.engine.Wall
Returns the 2D representation (a Rectangle) of the object.
getColor() - Method in class pacman.engine.Ghost
Returns the color of the ghost.
getFood() - Method in class pacman.engine.World
 
getFruit() - Method in class pacman.engine.World
 
getGhosts() - Method in class pacman.engine.World
 
getHeight() - Method in class pacman.engine.Radar
 
getName() - Method in class pacman.menu.MenuFunction.Control
 
getName() - Method in class pacman.menu.MenuFunction
Abstract getName method; each MenuFunction contains code in this method to return a string version of its name.
getName() - Method in class pacman.menu.MenuFunction.Load_Game
 
getName() - Method in class pacman.menu.MenuFunction.New_Game
 
getName() - Method in class pacman.menu.MenuFunction.Quit
 
getName() - Method in class pacman.menu.MenuFunction.Save_Game
 
getName() - Method in class pacman.menu.MenuFunction.Sound
 
getName() - Method in class pacman.menu.MenuFunction.View_Scores
 
getPos() - Method in class pacman.engine.World
 
getView() - Method in class pacman.engine.World
Returns the scene's ViewPlatformTransform; used by the Physics class turnLeft, turnRight, and move methods to animate the scene based on user input.
getWalls() - Method in class pacman.engine.World
 
getWidth() - Method in class pacman.engine.Radar
 
Ghost - Class in pacman.engine
A class for the ghosts in the scene.
Ghost(int, int, Color) - Constructor for class pacman.engine.Ghost
Creates the ghost at the specified location with the specified color.
ghosts - Static variable in class pacman.engine.World
Collection of the ghosts

I

image - Variable in class pacman.engine.Radar
 
initFullScreen() - Method in class pacman.engine.World
Puts the application into FSEM.
initialize() - Method in class pacman.engine.World
Initializes the World's variables, calls the createScene method, sets up the scene, and sends the application into fullscreen exclusive mode (FSEM).
interact() - Method in class pacman.engine.Radar
Checks for collisions with scene objects that are not walls.
it - Variable in class pacman.engine.Radar
 

K

keyPressed(KeyEvent) - Method in class pacman.engine.Physics
Handles keyboard input.
keyReleased(KeyEvent) - Method in class pacman.engine.Physics
Remnant of KeyListener interface; not used.
keyTyped(KeyEvent) - Method in class pacman.engine.Physics
Remnant of KeyListener interface; not used.

L

lastFlag - Variable in class pacman.engine.Physics
Keeps track of the last animation run and ensures that animStart is not constantly overwritten
level - Static variable in class pacman.engine.World
Current level

M

m3d - Static variable in class pacman.engine.Physics
 
main(String[]) - Static method in class pacman.engine.Game
Runs the application and displays the main menu.
mapSize - Variable in class pacman.engine.World
The dimensions of the Radar
menu - Variable in class pacman.engine.Physics
 
menu - Variable in class pacman.engine.World
Reference to the main menu
MenuFunction - Class in pacman.menu
Defines the functions used on the main menu's buttons.
MenuFunction(MenuPanel) - Constructor for class pacman.menu.MenuFunction
Constructs a new MenuFunction, setting the parent MenuPanel variable to the passed MenuPanel argument
MenuFunction.Control - Class in pacman.menu
The function associated with the Control button; provides options for modifying the controls (not implemented).
MenuFunction.Control(MenuPanel) - Constructor for class pacman.menu.MenuFunction.Control
 
MenuFunction.Load_Game - Class in pacman.menu
The function associated with the Load Game button; loads a previously saved game (not implemented).
MenuFunction.Load_Game(MenuPanel) - Constructor for class pacman.menu.MenuFunction.Load_Game
 
MenuFunction.New_Game - Class in pacman.menu
The function associated with the New Game button; starts a new game.
MenuFunction.New_Game(MenuPanel) - Constructor for class pacman.menu.MenuFunction.New_Game
 
MenuFunction.Quit - Class in pacman.menu
The function associated with the Quit button; exits the program.
MenuFunction.Quit(MenuPanel) - Constructor for class pacman.menu.MenuFunction.Quit
 
MenuFunction.Save_Game - Class in pacman.menu
The function associated with the Save Game button; saves the game (not implemented).
MenuFunction.Save_Game(MenuPanel) - Constructor for class pacman.menu.MenuFunction.Save_Game
 
MenuFunction.Sound - Class in pacman.menu
The function associated with the Sound button; provides options for configuring the sound (not implemented).
MenuFunction.Sound(MenuPanel) - Constructor for class pacman.menu.MenuFunction.Sound
 
MenuFunction.View_Scores - Class in pacman.menu
The function associated with the View Scores button; displays the high scores (not implemented).
MenuFunction.View_Scores(MenuPanel) - Constructor for class pacman.menu.MenuFunction.View_Scores
 
MenuPanel - Class in pacman.menu
Defines and generates the main menu display.
MenuPanel() - Constructor for class pacman.menu.MenuPanel
Constructs the MenuPanel and adds the function buttons.
MenuPanel.Listener - Class in pacman.menu
Generic Listener class to handle when a button is clicked.
MenuPanel.Listener(MenuFunction) - Constructor for class pacman.menu.MenuPanel.Listener
 
mf - Variable in class pacman.menu.MenuPanel.Listener
 
modflag - Variable in class pacman.engine.Physics
Determines whether or not the flag variable can be modified
move() - Method in class pacman.engine.Physics
Moves the camera forward.
mp - Variable in class pacman.menu.MenuFunction
The parent MenuPanel

N

NORTH - Static variable in class pacman.engine.Direction
 

P

pacman.engine - package pacman.engine
 
pacman.menu - package pacman.menu
 
paintComponent(Graphics) - Method in class pacman.engine.Radar
Updates the display.
Physics - Class in pacman.engine
A class that handles the movement through the scene and the keyboard input.
Physics(MenuPanel, World) - Constructor for class pacman.engine.Physics
Instantiates the class with the specified parent MenuPanel and World.
physics - Variable in class pacman.engine.Radar
 
physics - Variable in class pacman.engine.World
Physics processor
pos - Static variable in class pacman.engine.World
Position and bounding rectangle of the player

R

r - Variable in class pacman.engine.Food
A 2D representation of the cookie
r - Variable in class pacman.engine.Fruit
A 2D representation of the fruit
r - Variable in class pacman.engine.Ghost
A 2D representation of the ghost
r - Variable in class pacman.engine.Wall
A 2D representation of the wall
Radar - Class in pacman.engine
A display containing a 2D top-down view of the scene; also handles the interactions between the scene's objects.
Radar(int, int, World, Physics) - Constructor for class pacman.engine.Radar
 
radar - Variable in class pacman.engine.World
A 2D top-down view of the scene
run() - Method in class pacman.engine.Physics
This method runs the Physics processing.
run() - Method in class pacman.engine.Radar
Caps the framerate at 75fps and calls the appropriate functions to update the display.

S

score - Static variable in class pacman.engine.World
Current score
setColors() - Method in class pacman.engine.Radar
Instantiates the array of Colors.
size - Variable in class pacman.engine.Radar
Dimensions of the Radar
SOUTH - Static variable in class pacman.engine.Direction
 
start() - Method in class pacman.engine.Physics
Starts the thread.
start() - Method in class pacman.engine.Radar
 
startThreads() - Method in class pacman.engine.World
Starts all of the threads
stop() - Method in class pacman.engine.Physics
Stops the thread.
stop() - Method in class pacman.engine.Radar
 
stop() - Method in class pacman.engine.World
Stops the program threads.
su - Variable in class pacman.engine.World
Universe containing the scene

T

t - Variable in class pacman.engine.Physics
 
t - Variable in class pacman.engine.Radar
 
t3d - Static variable in class pacman.engine.Physics
 
tempSet - Variable in class pacman.engine.Radar
 
tg - Static variable in class pacman.engine.Physics
 
tgroups - Static variable in class pacman.engine.World
Collection of the TransformGroups
transform - Variable in class pacman.engine.World
Contains the transformations that position the scene objects in their appropriate places
turnLeft() - Method in class pacman.engine.Physics
Turns left by rotating the camera counterclockwise.
turnRight() - Method in class pacman.engine.Physics
Turns right by rotating the camera clockwise.

V

v3d - Static variable in class pacman.engine.Physics
 
viewAngle - Variable in class pacman.engine.Physics
Keeps track of the view's current angle (0 = the initial view direction)
vLook - Static variable in class pacman.engine.Physics
 
vPos - Static variable in class pacman.engine.Physics
 

W

Wall - Class in pacman.engine
The wall objects used in the scene.
Wall(int, int) - Constructor for class pacman.engine.Wall
Creates a wall section with a random shade of blue.
walls - Static variable in class pacman.engine.World
Collection of the wall objects
WEST - Static variable in class pacman.engine.Direction
 
world - Variable in class pacman.engine.Physics
 
world - Variable in class pacman.engine.Radar
 
World - Class in pacman.engine
Initializes and handles the display of the scene.
World(MenuPanel) - Constructor for class pacman.engine.World
Constructs a World with a reference to the parent MenuPanel and calls the initialize method.

Z

z - Static variable in class pacman.engine.Constants
Fixed height of world

A B C D E F G I K L M N P R S T V W Z