Skip navigation links
A C D E F G I L M O P R S V 

A

AchaMaze - Class in org.almacha.achamaze
The class of the main program.
AchaMaze() - Constructor for class org.almacha.achamaze.AchaMaze
 
AchaMazeBugError - Error in org.almacha.achamaze
This exception is for cases that cannot happen unless there is a bug in one of the AchaMaze classes, or some other strange situation (RAM problem, etc.).
AchaMazeBugError() - Constructor for error org.almacha.achamaze.AchaMazeBugError
 
AchaMazeBugError(String) - Constructor for error org.almacha.achamaze.AchaMazeBugError
 
AchaMazeError - Error in org.almacha.achamaze
A class for AchaMaze errors.
AchaMazeError(String) - Constructor for error org.almacha.achamaze.AchaMazeError
 
AchaMazeError() - Constructor for error org.almacha.achamaze.AchaMazeError
 
AchaMazeException - Exception in org.almacha.achamaze
A class for AchaMaze exceptions.
AchaMazeException(String) - Constructor for exception org.almacha.achamaze.AchaMazeException
 
AchaMazeException() - Constructor for exception org.almacha.achamaze.AchaMazeException
 
addPlayer() - Method in class org.almacha.achamaze.Maze
Adds a player in the maze.

C

canMove(int, int, Direction) - Method in class org.almacha.achamaze.Maze
Tells whether it is possible to move in direction d from cell (i, j).
canMove(Direction) - Method in class org.almacha.achamaze.Player
Tells whether the player can move in direction d.
canMove(Direction) - Method in class org.almacha.achamaze.PlayerStateForMazeAlgo
 
CellDoesNotExistException - Exception in org.almacha.achamaze
An exception raised when a reference is made to a cell that does not exist.
CellDoesNotExistException() - Constructor for exception org.almacha.achamaze.CellDoesNotExistException
 
CellDoesNotExistException(String) - Constructor for exception org.almacha.achamaze.CellDoesNotExistException
 
cellExists(int, int) - Method in class org.almacha.achamaze.Maze
Returns whether the cell (i,j) exists in the maze.
checkCellExists(int, int) - Method in class org.almacha.achamaze.Maze
Raises a CellDoesNotExistException if and only if cellExists(i, j) is false.
checkIsInMaze() - Method in class org.almacha.achamaze.Player
Throws PlayerNotInMazeException if player is not in maze.

D

decide() - Method in class org.almacha.achamaze.FollowLeftWallAlgo
 
decide() - Method in class org.almacha.achamaze.MazeSolvingAlgorithm
This method decides in which direction the player should go.
decide() - Method in class org.almacha.achamaze.PledgeAlgorithm
 
Direction - Enum in org.almacha.achamaze
Represents a direction (North, East, South, West).
draw(Graphics, Dimension) - Method in class org.almacha.achamaze.DrawMaze
This method draws the maze on g, using a surface of size displayAreaSize.
DrawMaze - Class in org.almacha.achamaze
This class enables you to display a maze (class Maze) on the screen.
DrawMaze(Maze) - Constructor for class org.almacha.achamaze.DrawMaze
Constructor for DrawMaze.

E

ExampleMaze1() - Static method in class org.almacha.achamaze.MazeExamples
 
exitMaze() - Method in class org.almacha.achamaze.Player
Get player out of the maze.

F

FollowLeftWallAlgo - Class in org.almacha.achamaze
An implementation of the "follow left wall" maze solving algorithm.
FollowLeftWallAlgo(PlayerStateForMazeAlgo) - Constructor for class org.almacha.achamaze.FollowLeftWallAlgo
 

G

getColorOfPlayer(int) - Method in class org.almacha.achamaze.DrawMaze
This method returns the color of the n-th player.
getHeight() - Method in class org.almacha.achamaze.Maze
Returns the height (number of lines) of the maze.
getMaze() - Method in class org.almacha.achamaze.PlayerStateForMazeAlgo
 
getMazeBackgroundColor() - Method in class org.almacha.achamaze.DrawMaze
 
getMazeFilledCellColor() - Method in class org.almacha.achamaze.DrawMaze
 
getMazeSolvingAlgorithm() - Method in class org.almacha.achamaze.Player
Returns the solving algorithm associated with the player.
getMazeWallColor() - Method in class org.almacha.achamaze.DrawMaze
 
getNumberOfPlayers() - Method in class org.almacha.achamaze.Maze
This method returns the number of players in the maze.
getPlayer(int) - Method in class org.almacha.achamaze.Maze
 
getPlayer() - Method in class org.almacha.achamaze.PlayerStateForMazeAlgo
 
getPlayerId() - Method in class org.almacha.achamaze.Player
Get player id.
getPlayerState() - Method in class org.almacha.achamaze.MazeSolvingAlgorithm
 
getPositionColumn() - Method in class org.almacha.achamaze.Player
Returns the current position of the player.
getPositionLine() - Method in class org.almacha.achamaze.Player
Returns the current position of the player.
getStartColumn() - Method in class org.almacha.achamaze.Maze
Returns the current start position (column).
getStartLine() - Method in class org.almacha.achamaze.Maze
Returns the current start position (line).
getStateForMazeAlgo() - Method in class org.almacha.achamaze.Player
 
getWidth() - Method in class org.almacha.achamaze.Maze
Returns the width (number of columns) of the maze.

I

isFilled(int, int) - Method in class org.almacha.achamaze.Maze
Tells whether the cell (i,j) is filled.
isInMaze() - Method in class org.almacha.achamaze.Player
Tells whether the player is in the maze.
isWallUp(int, int, Direction) - Method in class org.almacha.achamaze.Maze
This method returns whether a wall is up or not.

L

left() - Method in enum org.almacha.achamaze.Direction
Returns the direciton on the left of the given one.

M

main(String[]) - Static method in class org.almacha.achamaze.AchaMaze
 
Maze - Class in org.almacha.achamaze
This class represents a maze.
Maze(int, int) - Constructor for class org.almacha.achamaze.Maze
This constructor creates a new maze.
MazeExamples - Class in org.almacha.achamaze
Maze examples.
MazeExamples() - Constructor for class org.almacha.achamaze.MazeExamples
 
MazeSolvingAlgorithm - Class in org.almacha.achamaze
A class from which derive the classes that implement maze solving algorithm.
MazeSolvingAlgorithm(PlayerStateForMazeAlgo) - Constructor for class org.almacha.achamaze.MazeSolvingAlgorithm
 
move() - Method in class org.almacha.achamaze.MazeSolvingAlgorithm
This method calls decide() to decide in which direction to go.
move(Direction) - Method in class org.almacha.achamaze.Player
Move in the requested direction.
move(Direction) - Method in class org.almacha.achamaze.PlayerStateForMazeAlgo
 

O

org.almacha.achamaze - package org.almacha.achamaze
 

P

Player - Class in org.almacha.achamaze
This class represents a player that is in the maze.
Player(Maze, int) - Constructor for class org.almacha.achamaze.Player
 
PlayerCannotMoveException - Exception in org.almacha.achamaze
An exception raised when you request to move a player and it is not possible.
PlayerCannotMoveException() - Constructor for exception org.almacha.achamaze.PlayerCannotMoveException
 
PlayerCannotMoveException(String) - Constructor for exception org.almacha.achamaze.PlayerCannotMoveException
 
PlayerNotInMazeException - Exception in org.almacha.achamaze
An exception raised when a method which is only valid for a player in the maze is called on a player that is not in the maze.
PlayerNotInMazeException() - Constructor for exception org.almacha.achamaze.PlayerNotInMazeException
 
PlayerNotInMazeException(String) - Constructor for exception org.almacha.achamaze.PlayerNotInMazeException
 
PlayerStateForMazeAlgo - Class in org.almacha.achamaze
An instance of this class is given to a maze solving algorithm so that it knows the player situation.
PlayerStateForMazeAlgo(Maze, Player) - Constructor for class org.almacha.achamaze.PlayerStateForMazeAlgo
 
PledgeAlgorithm - Class in org.almacha.achamaze
An implementation of the Pledge Maze Solving Algorithm.
PledgeAlgorithm(PlayerStateForMazeAlgo) - Constructor for class org.almacha.achamaze.PledgeAlgorithm
 

R

resetPlayers() - Method in class org.almacha.achamaze.Maze
Deletes all player in the maze.
right() - Method in enum org.almacha.achamaze.Direction
Returns the direciton on the right of the given one.

S

setFilled(int, int, boolean) - Method in class org.almacha.achamaze.Maze
Sets whether a cell is filled or not.
setMazeBackgroundColor(Color) - Method in class org.almacha.achamaze.DrawMaze
 
setMazeFilledCellColor(Color) - Method in class org.almacha.achamaze.DrawMaze
 
setMazeSolvingAlgorithm(MazeSolvingAlgorithm) - Method in class org.almacha.achamaze.Player
Associates a maze solving algorithm to that player.
setMazeWallColor(Color) - Method in class org.almacha.achamaze.DrawMaze
 
setPosition(int, int) - Method in class org.almacha.achamaze.Player
Sets the current position of the player.
setStartPosition(int, int) - Method in class org.almacha.achamaze.Maze
Defines the position at which new players start in the maze.
setWallIsUp(int, int, Direction, boolean) - Method in class org.almacha.achamaze.Maze
This method sets whether a wall is there or not.

V

valueOf(String) - Static method in enum org.almacha.achamaze.Direction
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.almacha.achamaze.Direction
Returns an array containing the constants of this enum type, in the order they are declared.
A C D E F G I L M O P R S V 
Skip navigation links