A B C D G H I K L M N O P R S T U W 

A

addInstance(MouseRepresent) - Method in class mouserun.game.SequencingThread
Adds a new MouseRepresent that will be moved by the SequencingThread
addWall(Wall) - Method in class mouserun.game.Grid
Adds a new Wall that connects the Grid to another.
ASSETS_BOMB - Static variable in class mouserun.game.GameConfig
Assets
ASSETS_CHEESE - Static variable in class mouserun.game.GameConfig
 
ASSETS_EXPLODED - Static variable in class mouserun.game.GameConfig
 
ASSETS_MOUSEDOWN - Static variable in class mouserun.game.GameConfig
 
ASSETS_MOUSELEFT - Static variable in class mouserun.game.GameConfig
 
ASSETS_MOUSERIGHT - Static variable in class mouserun.game.GameConfig
 
ASSETS_MOUSEUP - Static variable in class mouserun.game.GameConfig
 

B

Bomb - Class in mouserun.game
Class Bomb.
Bomb(int, int, Mouse) - Constructor for class mouserun.game.Bomb
Constructor.
BOMB - Static variable in class mouserun.game.Mouse
 
BombRepresent - Class in mouserun.game
Class BombRepresent is a link between the Bomb and its Game Interface representation.
BombRepresent(Bomb, ImagedPanel, JLabel) - Constructor for class mouserun.game.BombRepresent
Creates an instance of BombRepresent.
BombThread - Class in mouserun.game
Class BombThread removes the Bomb representation from the Game Interface after detonation.
BombThread(GameControllerAdapter, Bomb) - Constructor for class mouserun.game.BombThread
Creates an instance of the thread.

C

canGoDown() - Method in class mouserun.game.Grid
Determine if moving Downward from the grid is possible.
canGoLeft() - Method in class mouserun.game.Grid
Determine if moving to the Left from the grid is possible.
canGoRight() - Method in class mouserun.game.Grid
Determine if moving to the Right from the grid is possible.
canGoUp() - Method in class mouserun.game.Grid
Determine if moving Upward from the grid is possible.
causeMouseMove(MouseController, int) - Method in class mouserun.game.GameController
Causes the Mouse to move based on its move decision
Cheese - Class in mouserun.game
Class Cheese is the object that the Mouse implementations have to race to consume.
Cheese(int, int) - Constructor for class mouserun.game.Cheese
Creates an instance of the cheese.
CHEESE_NUMBER_FORMAT - Static variable in class mouserun.game.GameConfig
 
clearMouse() - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked at the end of the game.
clearMouse() - Method in class mouserun.game.GameUI
 
control() - Method in class mouserun.game.MouseRepresent
This method is responsible for moving the mouse towards it target grid.
COUNT_DOWN_FONT_SIZE - Static variable in class mouserun.game.GameConfig
 
CountDownThread - Class in mouserun.game
Class CountDownThread counts down the number of seconds left to the game ends.
CountDownThread(GameControllerAdapter, int) - Constructor for class mouserun.game.CountDownThread
Creates a new instance of CountDownThread class.

D

detonate() - Method in class mouserun.game.Bomb
Mark the bomb has detonated if it has not been detonated already.
detonateBomb(Bomb) - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked when a mouse crosses a bomb.
detonateBomb(Bomb) - Method in class mouserun.game.GameUI
 
DISEASES_TO_RETIRE - Static variable in class mouserun.game.GameConfig
 
displayCheeseNumber() - Method in class mouserun.game.MouseRepresent
 
displayCountDown(int) - Method in interface mouserun.game.GameControllerAdapter
This method is to be invoked when showing the number of seconds left to the game end.
displayCountDown(int) - Method in class mouserun.game.GameUI
 
DOWN - Static variable in class mouserun.game.Mouse
 

G

GAME_TITLE - Static variable in class mouserun.game.GameConfig
UI
GameConfig - Class in mouserun.game
Class GameConfiguration is a common location to edit Fixed game settings.
GameConfig() - Constructor for class mouserun.game.GameConfig
 
GameController - Class in mouserun.game
Class GameController is the brain of the game.
GameController(GameControllerAdapter, int, int, int, int) - Constructor for class mouserun.game.GameController
Creates an instance of the controller.
GameControllerAdapter - Interface in mouserun.game
Interface GameControllerAdapter provides the interface for the GameController to raise events that occurred during the game to be reflected in the Game Interface.
GameStarter - Class in mouserun
Class GameStarter is the Main class of MouseRun.
GameStarter() - Constructor for class mouserun.GameStarter
 
GameUI - Class in mouserun.game
Class GameUI is the Game Interface of the game.
GameUI(int, int, int, int) - Constructor for class mouserun.game.GameUI
Creates an instance of the GameUI.
getAssetName() - Method in class mouserun.game.Grid
Based on the configuration of the grid, this will return the asset name that will display this grid.
getBomb() - Method in class mouserun.game.BombRepresent
Get the bomb instance that is represented.
getGrid(int, int) - Method in class mouserun.game.Maze
Get the Grid in the maze given its row and column number.
getGridLeft(int) - Method in class mouserun.game.GameController
Gets the actual X-axis on the game interface given the maze X-axis value.
getGridTop(int) - Method in class mouserun.game.GameController
Gets the actual Y-axis on the game interface given the maze Y-axis value.
getHeight() - Method in class mouserun.game.Maze
Get the number of rows defined for this maze.
getInstances() - Method in class mouserun.game.SequencingThread
Gets all MouseRepresents that are being moved in sequence by the SequencingThread
getLabel() - Method in class mouserun.game.BombRepresent
Get the Label that displays the owner of the bomb.
getMaze() - Method in class mouserun.game.GameController
Retrieve the maze that was generated by the controller.
getMouse() - Method in class mouserun.game.Bomb
Get the Mouse that planted the bomb.
getMouse() - Method in class mouserun.game.MouseController
Get the Mouse wrapped in this MouseController.
getMouseController() - Method in class mouserun.game.MouseRepresent
Gets The MouseController whose Mouse is represented by MouseRepresent
getMouseNextMove(MouseController, Grid) - Method in class mouserun.game.GameController
Get the next move made by the mouse implementation.
getName() - Method in class mouserun.game.Mouse
Get the name of the mouse that appears on the game interface.
getName() - Method in class mouserun.game.MouseRepresent
 
getNextGrid(Grid) - Method in class mouserun.game.Wall
Get the other grid of connected by the wall that is not the current grid
getNextGrid() - Method in class mouserun.game.Wall
Get the first grid.
getNextMove(Grid) - Method in class mouserun.game.MouseRepresent
Gets the Mouse's next move
getNumberOfBombs() - Method in class mouserun.game.MouseController
Gets the number of Bombs the Mouse still has.
getNumberOfCheese() - Method in class mouserun.game.MouseController
Get the number of cheese the current Mouse has consumed thus far.
getOtherGrid() - Method in class mouserun.game.Wall
Get the second grid
getPreferredSize() - Method in class mouserun.game.common.ImagedPanel
 
getRepresent() - Method in class mouserun.game.BombRepresent
Get the ImagedPanel representing the bomb.
getRepresent() - Method in class mouserun.game.MouseRepresent
Gets the JPanel that represents the Mouse.
getSpeed() - Method in class mouserun.game.MouseController
Get the number of pixels to move per mouse move turn.
getTargetGrid() - Method in class mouserun.game.MouseController
Gets the next grid the mouse is to head to.
getWidth() - Method in class mouserun.game.Maze
Get the number of columns defined for this maze.
getX() - Method in class mouserun.game.Bomb
Get the X-axis of the location of the bomb.
getX() - Method in class mouserun.game.Cheese
Get the X-axis of the cheese in the maze.
getX() - Method in class mouserun.game.Grid
Get the Column number that the Grid belongs to.
getY() - Method in class mouserun.game.Bomb
Get the Y-axis of the location of the bomb.
getY() - Method in class mouserun.game.Cheese
Get the Y-axis of the cheese in the maze.
getY() - Method in class mouserun.game.Grid
Get the Row number that the Grid belongs to.
Grid - Class in mouserun.game
Class Grid is the individual Grid of the Maze.
Grid(int, int) - Constructor for class mouserun.game.Grid
Creates a new instance of the Grid.
GRID_LENGTH - Static variable in class mouserun.game.GameConfig
 

H

hasDetonated() - Method in class mouserun.game.Bomb
Determine if the bomb has been detonated when a mouse comes across it.

I

ImagedPanel - Class in mouserun.game.common
Class ImagedPanel simplifies the transposition of the background images onto the JPanel.
ImagedPanel(String, int, int) - Constructor for class mouserun.game.common.ImagedPanel
Creates a new instance of ImagedPanel
increaseNumberOfCheese() - Method in class mouserun.game.MouseController
Increases the number of cheese consumed by the Mouse.
isOpened() - Method in class mouserun.game.Wall
Determine if the wall is opened.

K

kill() - Method in class mouserun.game.SequencingThread
Stops the Thread

L

LEFT - Static variable in class mouserun.game.Mouse
 
load() - Static method in class mouserun.mouse.MouseLoader
Detects all Mouse Implementations in the package mouserun.mouse.

M

main(String...) - Static method in class mouserun.GameStarter
 
makeBomb() - Method in class mouserun.game.MouseController
Creates a new bomb for the Mouse to be planted on the current targetGrid.
Maze - Class in mouserun.game
Class Maze is the board which the Mouse implementations will navigate through to find the Cheese.
Maze(int, int) - Constructor for class mouserun.game.Maze
Creates a new instance of the maze.
Mouse - Class in mouserun.game
Abstract Class Mouse should be the base class of all Mouse implementations.
Mouse(String) - Constructor for class mouserun.game.Mouse
Creates a new instance of Mouse.
MOUSE_CHEESE_DISPLAY_LENGTH - Static variable in class mouserun.game.GameConfig
 
MOUSE_RESPONSE_TIMEOUT - Static variable in class mouserun.game.GameConfig
 
MouseController - Class in mouserun.game
Class MouseController is the wrapper class for each Mouse implementation.
MouseController(Mouse) - Constructor for class mouserun.game.MouseController
Creates a new instance of MouseController
MouseLoader - Class in mouserun.mouse
Class MouseLoader detects and load all Mouse implementations packaged under mouserun.mouse
MouseLoader() - Constructor for class mouserun.mouse.MouseLoader
 
MouseRepresent - Class in mouserun.game
Class MouseRepresent is the link between the MouseController and the Mouse graphical interface.
MouseRepresent(GameController, MouseController, ImagedPanel, JLabel, JLabel, String, String, String, String) - Constructor for class mouserun.game.MouseRepresent
Creates a new instance of the MouseRepresent
mouserun - package mouserun
 
mouserun.game - package mouserun.game
 
mouserun.game.common - package mouserun.game.common
 
mouserun.mouse - package mouserun.mouse
 
move(Grid, Cheese) - Method in class mouserun.game.Mouse
The move method is called every time a mouse reaches a new grid.
move(Grid, Cheese) - Method in class mouserun.mouse.ProblematicMouse
 
move(Grid, Cheese) - Method in class mouserun.mouse.TestMouse
 
move(Grid, Cheese) - Method in class mouserun.mouse.TheExplorer
 
moveMouse(int) - Method in class mouserun.game.MouseRepresent
Causes the mouse to move

N

newBomb(Bomb) - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked when a mouse planted a new bomb.
newBomb(Bomb) - Method in class mouserun.game.GameUI
 
newCheese(Cheese) - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked each time the cheese changes location.
newCheese(Cheese) - Method in class mouserun.game.GameUI
 
newCheese() - Method in class mouserun.game.Mouse
This method is called every time a mouse (including own implementation) consumes a cheese and a new cheese is relocated.
newCheese() - Method in class mouserun.mouse.ProblematicMouse
 
newCheese() - Method in class mouserun.mouse.TestMouse
 
newCheese() - Method in class mouserun.mouse.TheExplorer
 
newMouse(MouseController) - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked during game load to introduce new mouse into the user interface.
newMouse(MouseController) - Method in class mouserun.game.GameUI
 

O

onGrid(Grid, Cheese) - Method in class mouserun.game.MouseController
This method is called each time the mouse reaches a grid.

P

paintComponent(Graphics) - Method in class mouserun.game.common.ImagedPanel
 
PIXELS_ON_TARGET_LEEWAY - Static variable in class mouserun.game.GameConfig
 
PIXELS_PER_TURN - Static variable in class mouserun.game.GameConfig
 
ProblematicMouse - Class in mouserun.mouse
 
ProblematicMouse() - Constructor for class mouserun.mouse.ProblematicMouse
 

R

RATIO_BOMBS_TO_CHEESE - Static variable in class mouserun.game.GameConfig
Logic
RATIO_CLOSED_WALL_TO_OPEN - Static variable in class mouserun.game.GameConfig
 
removeBomb(Bomb) - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked when the bomb represent is to be removed.
removeBomb(Bomb) - Method in class mouserun.game.GameUI
 
report(MouseRepresent, int, int) - Method in class mouserun.game.GameController
All instances of Mouse will report its location on the maze.
repositionMouse(MouseController, Grid) - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked when the mouse represent has to be repositioned.
repositionMouse(MouseController, Grid) - Method in class mouserun.game.GameUI
 
respawned() - Method in class mouserun.game.Mouse
This method is called every time the Mouse touches a bomb that is not planted by it.
respawned() - Method in class mouserun.mouse.ProblematicMouse
 
respawned() - Method in class mouserun.mouse.TestMouse
 
respawned() - Method in class mouserun.mouse.TheExplorer
 
retire() - Method in class mouserun.game.MouseRepresent
Causes the Mouse to display that is has retired.
RIGHT - Static variable in class mouserun.game.Mouse
 
ROUND_SLEEP_TIME - Static variable in class mouserun.game.GameConfig
 
run() - Method in class mouserun.game.BombThread
Begin to execute the thread.
run() - Method in class mouserun.game.CountDownThread
 
run() - Method in class mouserun.game.SequencingThread
 

S

SequencingThread - Class in mouserun.game
Class SequencingThread moves all MouseInstances in a round robin manner.
SequencingThread() - Constructor for class mouserun.game.SequencingThread
Creates a new Instance of the SequencingThread
setImage(String) - Method in class mouserun.game.common.ImagedPanel
Sets a new asset as an image for the ImagedPanel
setNumberOfBombs(int) - Method in class mouserun.game.MouseController
Sets the number of Bombs that Mouse will have.
setOpened(boolean) - Method in class mouserun.game.Wall
Sets the wall closed or opened.
setTargetGrid(Grid) - Method in class mouserun.game.MouseController
Sets the next grid the mouse is heading to.
start() - Method in class mouserun.game.GameController
Causes the game to begin.
start() - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked and adapter has to prepare all necessary preloading and starts the game.
start() - Method in class mouserun.game.GameUI
 
stop() - Method in interface mouserun.game.GameControllerAdapter
This method will be invoked and adapter has to cause all represents to halt.
stop() - Method in class mouserun.game.GameUI
 

T

TestMouse - Class in mouserun.mouse
 
TestMouse() - Constructor for class mouserun.mouse.TestMouse
 
TheExplorer - Class in mouserun.mouse
 
TheExplorer() - Constructor for class mouserun.mouse.TheExplorer
 

U

UP - Static variable in class mouserun.game.Mouse
 

W

Wall - Class in mouserun.game
Class Wall connects two Grids together.
Wall(Grid, Grid) - Constructor for class mouserun.game.Wall
Creates a new instance of Wall
A B C D G H I K L M N O P R S T U W