A B C D E F G H I K L M N P R S T U W X Y 

A

actionPerformed(ActionEvent) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Repaint the graphics each frame
add(String, Date, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
Add function that creates a GamePlayed object and adds it to the Leaderboard in the proper spot
addGhost(Ghost) - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
Method to add a ghost to a ghost house object Ghosts in ghost house will properly spawn and respawn
addGhosts(List<Ghost>) - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
returns the top left location of the ghost house Method to add ghosts to a ghost house object Ghosts in ghost house will properly spawn and respawn
addNotify() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Called by the system
alive - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
assetImagePath - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
Audio - Class in edu.ucsb.cs56.projects.games.pacman
An audio class that supports importing an audio asset that is provided as an input stream.
Audio(InputStream) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Audio
Constructor for Audio\ *

B

BLOCKSIZE - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
Board - Class in edu.ucsb.cs56.projects.games.pacman
Playing field for a Pac-Man arcade game remake that keeps track of all relevant data and handles game logic.
Board() - Constructor for class edu.ucsb.cs56.projects.games.pacman.Board
Constructor for Board object

C

callLeaderboardMain(String) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Calls the leaderboards main method with the command line arguments
Character - Class in edu.ucsb.cs56.projects.games.pacman
Class that every character inherits from, including players and AI-controlled enemies.
Character(int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Character
Constructor for Character class
Character(int, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Character
Constructor for Character class
CharacterTest - Class in edu.ucsb.cs56.projects.games.pacman
Test class for Character
CharacterTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.CharacterTest
 
checkAlive() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Returns true if any pacman is alive, returns false if they are all dead
checkMaze() - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
Checks if there are any pellets left for Pacman to eat, and restarts the game on the next board in a higher difficulty if finished
compareTo(GamePlayed) - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
Overriden version of compareTo() method for GamePlayed Class Compares this game score with the specified game score for order.
compareTo(Node) - Method in class edu.ucsb.cs56.projects.games.pacman.Node
Compares two nodes and determines which is better Used for sorting in priority queue

D

death() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Handles character's death
death() - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Handles character's death coordinates are reset to the coordinates that the ghost initially started at and the ghost becomes inedible
death() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Handles PacMan's death by taking away lives, resetting the death timer, and resetting position
death(int, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Handles character's death and allows specification of a new location for the character to spawn at
deathTimer - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
defaultSpeed - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
detectCollision(ArrayList<Ghost>) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Detects when ghosts and pacman collide Ghosts are sent back to the 'ghost house' (center of map) when pacman dies
dir - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
 
direction - Variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
 
Direction - Class in edu.ucsb.cs56.projects.games.pacman
Direction class holds 4 directions.
Direction() - Constructor for class edu.ucsb.cs56.projects.games.pacman.Direction
 
distance - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
 
doAnim() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Animates the Pacman sprite's direction as well as mouth opening and closing
DOWN - Static variable in class edu.ucsb.cs56.projects.games.pacman.Direction
 
draw(Graphics2D, JComponent) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
draws the character onto the screen
draw(Graphics2D, JComponent) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Draws the ghost
draw(Graphics2D, JComponent) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Calls the appropriate draw method for the direction Pacman is facing
drawHighScores(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Displays a list of high scores on the bottom of the screen
drawMaze(Graphics2D) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
Draws the maze that serves as a playing field.
drawScore(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Display game information such as: the number of pellets left, the current score, the number of lives left for pacman and possibly Ms.
dx - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
dy - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 

E

edible - Variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
edibleTimer - Variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
edu.ucsb.cs56.projects.games.pacman - package edu.ucsb.cs56.projects.games.pacman
 
edu.ucsb.cs56.projects.games.pacman.editor - package edu.ucsb.cs56.projects.games.pacman.editor
 
equals(Object) - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
Overridden version of equals() method for GamePlayed Class

F

fCost - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
 
fruitCounter - Variable in class edu.ucsb.cs56.projects.games.pacman.Grid
 

G

gameInit() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Initialize game variables
gameOver() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
End the game if remaining lives reaches 0.
GamePlayed - Class in edu.ucsb.cs56.projects.games.pacman
Stores information about the game that has just been played
GamePlayed(String, Date, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.GamePlayed
Constructor to create a GamePlayed object
GamePlayedTest - Class in edu.ucsb.cs56.projects.games.pacman
Test class for GamePlayed
GamePlayedTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
 
gCost - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
 
get2DGridData() - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
 
getChild(int, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Node
Creates a child node which represents movement from parent node
getDate() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
Getter that returns the date for this GamePlayed instance
getDirection(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
 
getGhosts() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
returns the ghosts list
getGridData() - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
 
getGridWidth() - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
 
getLifeImage() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Returns the image used for displaying remaining lives
getLifeImage() - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Returns the image used for displaying remaining lives
getLifeImage() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Returns the image used for displaying remaining lives
getName() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
Getter that returns the name for this GamePlayed instance
getPelletNum() - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
Count the number of pellets left for Pacman to eat
getPelletNumForMap(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
Count the number of pellets in each map
getPillNum() - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
Count the number of power pills left for Pacman to eat
getPlayerTopThree() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
Test case for getPlayerTopThree() method of Leaderboard
getPlayerTopThree(String) - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
returns a formatted string of the top three scores for a player
getScore() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
Getter that returns the score for this GamePlayed instance
getTopLeft() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
returns the top left location of the ghost house
getTopThree() - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
returns a formatted string of the top three all time highest scores
getTopThree() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
Test case for getTopThree() method of Leaderboard
getWidth() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
returns the width of the ghost house
getX() - Method in class edu.ucsb.cs56.projects.games.pacman.Location
Gets the x-coordinate of the location
getY() - Method in class edu.ucsb.cs56.projects.games.pacman.Location
Get the y-coordinate of the location
Ghost - Class in edu.ucsb.cs56.projects.games.pacman
A class used to represent the ghost enemies used for AI-controlled ghosts in the standard mode and for player controlled ghosts in multiplayer
Ghost(int, int, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Ghost
Ghost class constructor for singleplayer
Ghost(int, int, int, int, int, Grid) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Ghost
 
Ghost(int, int, int, int, Grid) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Ghost
Ghost class constructor for multiplayer
GHOST1 - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
GHOST2 - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
GhostHouse - Class in edu.ucsb.cs56.projects.games.pacman
This is a class to represent a Ghost House which holds ghost starting coordinates and tracks when ghosts are released onto the map to chase Pacman
GhostHouse(Location, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.GhostHouse
Constructor for a ghosthouse object note that location must matched with the level map data that is created
GHOSTHOUSE_WIDTH - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
GhostHouseTest - Class in edu.ucsb.cs56.projects.games.pacman
Test class for GhostHouse
GhostHouseTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
 
GhostTest - Class in edu.ucsb.cs56.projects.games.pacman
A class for testing the functionality of the ghost class
GhostTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.GhostTest
 
goingDown(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
 
goingLeft(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
 
goingRight(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
 
goingUp(int, int) - Static method in class edu.ucsb.cs56.projects.games.pacman.Direction
 
Grid - Class in edu.ucsb.cs56.projects.games.pacman
Class representing the map layout
Grid() - Constructor for class edu.ucsb.cs56.projects.games.pacman.Grid
Constructor for Board object
GRID_CELL_BORDER_BOTTOM - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
 
GRID_CELL_BORDER_LEFT - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
 
GRID_CELL_BORDER_RIGHT - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
 
GRID_CELL_BORDER_TOP - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
 
GRID_CELL_FRUIT - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
 
GRID_CELL_PELLET - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
 
GRID_CELL_POWER_PILL - Static variable in class edu.ucsb.cs56.projects.games.pacman.GridData
 
GridData - Class in edu.ucsb.cs56.projects.games.pacman
A class to hold the information that is associated with a level such as walls, fruit, pellets, and power pills
GridData(int, short[]) - Constructor for class edu.ucsb.cs56.projects.games.pacman.GridData
Constructor for a Grid object
GridDataConversion - Class in edu.ucsb.cs56.projects.games.pacman.editor
Deprecated.
Refer to GridData.
GridDataConversion() - Constructor for class edu.ucsb.cs56.projects.games.pacman.editor.GridDataConversion
Deprecated.
 

H

hCost - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
 

I

IMAGE_PATH - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
incrementFruit(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
Increment fruit as the pacman is alive
init() - Method in class edu.ucsb.cs56.projects.games.pacman.Node
Initializes distance for a path.

K

keyPressed(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Handles key presses for game controls
keyPressed(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Handles player keyboard input
keyPressed(int) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Handles key presses for game controls
keyReleased(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Handles key releases for game controls
keyReleased(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
keyReleased(int) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Handles the release of a key by the player Functionality has been removed for having smoother gameplay Releasing key no longer undoes current direction move command

L

Leaderboard - Class in edu.ucsb.cs56.projects.games.pacman
Stores instances of GamePlayed objects and sorts them by highest score--keeps track of Game History Loads and Stores the GamePlayed Objects in a file
Leaderboard() - Constructor for class edu.ucsb.cs56.projects.games.pacman.Leaderboard
 
LeaderboardGUI - Class in edu.ucsb.cs56.projects.games.pacman
Represents the GUI elements of the Leaderboard class that holds high scores
LeaderboardGUI() - Constructor for class edu.ucsb.cs56.projects.games.pacman.LeaderboardGUI
Constructor for LeaderboardGui--initializes the JComponents of leaderboardgui
LeaderboardTest - Class in edu.ucsb.cs56.projects.games.pacman
Test class for Leaderboard
LeaderboardTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
 
LEFT - Static variable in class edu.ucsb.cs56.projects.games.pacman.Direction
 
levelContinue() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Initialize Pacman and ghost position/direction
levelInit(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
Initialize level with data containing game object information
lives - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
load() - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
Loads the Leaderboard ArrayList from the .ser file
loadAudio() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Load game audio from audio folder
loadImages() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Load game sprites from images folder
loadImages() - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Load ghost sprites from images folder
loadImages() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Load game sprites from images folder
loadLevel() - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
 
loadLevel(String) - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
 
loadScores() - Method in class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
Scans the save file and assigns its values into an ArrayList
loadStream(InputStream) - Method in class edu.ucsb.cs56.projects.games.pacman.Audio
Gets the sound bytes from the stream
Location - Class in edu.ucsb.cs56.projects.games.pacman
This class represents location in x-y coordinates of an object on the game map
Location(int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Location
Location constructor takes an x and y integer to track location of object

M

main(String[]) - Static method in class edu.ucsb.cs56.projects.games.pacman.editor.GridDataConversion
Deprecated.
 
main(String[]) - Static method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
 
main(String[]) - Static method in class edu.ucsb.cs56.projects.games.pacman.PacMan
Main function for PacMan Class that tests to see if there are command line arguments
move() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Moves character's current position
move(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Moves character's current position with the board's collision
move(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Moves character's current position with the board's collision Handles logic pertaining to collision detection, movement, and standstill
move(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Moves character's current position with the board's collision
moveable(int, int, short) - Static method in class edu.ucsb.cs56.projects.games.pacman.Character
Check if the direction has no wall and moveable
moveAI(Grid, Character[]) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Moves character's current position with the board's collision
moveAI(Grid, Character[]) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
For ghosts that are close to pacman, have them follow pacman with a specified probability
moveAI(Grid, Character[]) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Moves character's current position while detecting for collision within the board
moveRandom(Grid) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
Pick a random move from the list of available movement options for the ghost to move in
MSPACMAN - Static variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
 

N

newLevel() - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
 
Node - Class in edu.ucsb.cs56.projects.games.pacman
Class representing a node (tile) in map used for AI pathfinding Algorithm used: A* Read more: http://en.wikipedia.org/wiki/A*_search_algorithm Currently, the hCost is NOT admissable for going through tunnels since it will evaluate the cartesian distance and overestimate.
Node(int, int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.Node
Constructor for node
NONE - Static variable in class edu.ucsb.cs56.projects.games.pacman.Direction
 
NUMBLOCKS - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 

P

PacMan - Class in edu.ucsb.cs56.projects.games.pacman
A Pac-Man arcade game remake
PacMan(String) - Constructor for class edu.ucsb.cs56.projects.games.pacman.PacMan
Constructor for PacMan object
PACMAN - Static variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
 
PacManLevelDisplay - Class in edu.ucsb.cs56.projects.games.pacman.editor
Renders the level grid data for the custom Pac-Man level editor.
PacManLevelDisplay(PacManLevelEditor) - Constructor for class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelDisplay
 
PacManLevelDisplay(PacManLevelEditor, short[][]) - Constructor for class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelDisplay
 
PacManLevelEditor - Class in edu.ucsb.cs56.projects.games.pacman.editor
Custom Pac-Man level editor.
PacManLevelEditor() - Constructor for class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
 
pacmanspeed - Variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
 
PacPlayer - Class in edu.ucsb.cs56.projects.games.pacman
A class to represent the player controlled pacman character.
PacPlayer(int, int) - Constructor for class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Constructor for PacPlayer class
PacPlayer(int, int, int, Grid) - Constructor for class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Constructor for PacPlayer class for use when multiple players are playing the game
PacPlayerTest - Class in edu.ucsb.cs56.projects.games.pacman
Test class for PacPlayer
PacPlayerTest() - Constructor for class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
 
paint(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Paint graphics onto screen
paintComponent(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelDisplay
 
parent - Variable in class edu.ucsb.cs56.projects.games.pacman.Node
 
PATH_AUDIO - Static variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
 
PATH_IMAGE_MSPACMAN - Static variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
 
PATH_IMAGE_PACMAN - Static variable in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
 
pathFind(Grid, int, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Ghost
A* pathfinding algorithm
play() - Method in class edu.ucsb.cs56.projects.games.pacman.Audio
Plays a sound clip once and will not replay until the clip has finished
play(boolean) - Method in class edu.ucsb.cs56.projects.games.pacman.Audio
Plays a sound clip once and will not replay until the clip has finished
playAudio(int) - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Plays a sound from pacman audio array.
playerNum - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
playGame(Graphics2D) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Main game logic loop Anything related to the updating of game objects and state occurs in this method.
prev_speed - Variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 

R

randomBlock() - Method in class edu.ucsb.cs56.projects.games.pacman.Grid
A method to set the x and y coordinates to a random number on the board
reqdx - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
reqdy - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
reset() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Restores the character's default values.
resetPos() - Method in class edu.ucsb.cs56.projects.games.pacman.Character
Restores the character's default position
resetPos() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayer
Resets the player's position
resetScores() - Method in class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
Deletes the save file
resetTimer() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
Resets the timer on the ghost house must wait a full time interval before the next ghost is released
RIGHT - Static variable in class edu.ucsb.cs56.projects.games.pacman.Direction
 

S

save() - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
Saves the Leaderboard ArrayList in .ser file
saveLevel() - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
 
saveLevelAs() - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
 
saveScore(ArrayList<Integer>) - Method in class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
Rewrites the save file using the list of scores given
score - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
SCORE_ENEMY - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
SCORE_FRUIT - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
SCORE_PELLET - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
SCORE_POWER_PILL - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
SCORE_WIN - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
ScoreLoader - Class in edu.ucsb.cs56.projects.games.pacman
Writes and loads a list of int from a textfile
ScoreLoader(String) - Constructor for class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
Constructor to create an object of class ScoreLoader
SCRSIZE - Static variable in class edu.ucsb.cs56.projects.games.pacman.Board
 
setDir(int, int) - Method in class edu.ucsb.cs56.projects.games.pacman.Node
Sets the direction of movement into node Prevents abrupt movements (left to right and up to down)
setFileName(String) - Method in class edu.ucsb.cs56.projects.games.pacman.Leaderboard
Setter for filename
setGridData(short[]) - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
Method to set the grid's data array
setGridSelection(Point) - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelEditor
 
setGridWidth(int) - Method in class edu.ucsb.cs56.projects.games.pacman.GridData
A method to specify the grid's width
setLeaderBoardFileName(String[]) - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardGUI
setLeaderBoardFileName method- sets the fileName in the instance of the leaderboard class
setSpeed(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
sets the speed of the character
setX(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
sets the x-coordiante of the character on the screen
setX(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Location
Changes the x-coordinate to the specified coordinate
setY(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Character
sets the y-coordinate of the character on the screen
setY(int) - Method in class edu.ucsb.cs56.projects.games.pacman.Location
Changes the y-coordinate to the specified coordinate
showEndGameScreen(int, Date, int) - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardGUI
Draw a box with the Game Over text, that prompts user for his/her name
showHelpScreen(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Shows help screen detailing game mode instructions, movement commands, and other game controls
showIntroScreen(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Draw a message box with the text "Press s to start." in the center of the screen
showPauseScreen(Graphics) - Method in class edu.ucsb.cs56.projects.games.pacman.Board
Draw a message box telling the player the game is paused Also tells player to press 'p' to continue the game
speed - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
startDevMode() - Method in class edu.ucsb.cs56.projects.games.pacman.Board
if the game is running in dev-mode then create a dev-tool GUI
startX - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
startY - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 

T

test_add() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
Test case for add(GamePlayed g) method of Leaderboard
test_add2() - Method in class edu.ucsb.cs56.projects.games.pacman.LeaderboardTest
Test case for add(String name, Date d, int score) method of Leaderboard
test_addGhost() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
 
test_addGhosts() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
 
test_constructor() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
Test case for GamePlayed constructor
test_constructor() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
 
test_constructor_1() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
Test to determine that the Ghost constructor works properly
test_constructor_2() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
A more rigorous test to determine that the Ghost constructor works properly
test_constructor_complex() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
Testing to debug the PacPlayer constructor by testing values for positin, lives, direction, speed, and testing for 'Ms PacMan'
test_constructor_simple() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
Runs a test on the character constructor for debugging purposes
test_constructor_simple() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
Testing to debug the PacPlayer constructor by testing values for position, lives, direction, and speed
test_constructor_super() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
A test of the death() method where ghosts return to their original locations after death
test_death() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
Testing to debug the death method of the PacPlayer class
test_death_1() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
 
test_death_2() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostTest
A test of the death() method where ghosts return to a given location upon death
test_getDate() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
Test case for getDate() method of GamePlayed
test_getName() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
Test case for getName() method of GamePlayed
test_getScore() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayedTest
Test case for getScore() method of GamePlayed
test_move() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
A test to debug the character class's 'move' method
test_moveable() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
 
test_reset() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
A test to debug the reset method of the PacPlayer class
test_resetPos() - Method in class edu.ucsb.cs56.projects.games.pacman.CharacterTest
 
test_resetPos() - Method in class edu.ucsb.cs56.projects.games.pacman.PacPlayerTest
 
test_update() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouseTest
 
toString() - Method in class edu.ucsb.cs56.projects.games.pacman.GamePlayed
Overridden version of toString() method for GamePlayed Class
tx - Static variable in class edu.ucsb.cs56.projects.games.pacman.Node
 
ty - Static variable in class edu.ucsb.cs56.projects.games.pacman.Node
 
type - Variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
TYPE_PINK - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 
TYPE_RED - Static variable in class edu.ucsb.cs56.projects.games.pacman.Ghost
 

U

UP - Static variable in class edu.ucsb.cs56.projects.games.pacman.Direction
 
update() - Method in class edu.ucsb.cs56.projects.games.pacman.GhostHouse
This method updates the timer on the ghost house so that ghosts are released at proper intervals - call this in the logic updating loops
updateGrid(short[][]) - Method in class edu.ucsb.cs56.projects.games.pacman.editor.PacManLevelDisplay
 

W

writeScore(int...) - Method in class edu.ucsb.cs56.projects.games.pacman.ScoreLoader
Saves multiple scores into the save file

X

x - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
x - Variable in class edu.ucsb.cs56.projects.games.pacman.Grid
 

Y

y - Variable in class edu.ucsb.cs56.projects.games.pacman.Character
 
y - Variable in class edu.ucsb.cs56.projects.games.pacman.Grid
 
A B C D E F G H I K L M N P R S T U W X Y 
Skip navigation links