|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.almacha.achamaze.PlayerStateForMazeAlgo
public class PlayerStateForMazeAlgo
An instance of this class is given to a maze solving algorithm so that it knows the player situation.
| Field Summary | |
|---|---|
private Maze |
maze
|
private Player |
player
|
| Constructor Summary | |
|---|---|
PlayerStateForMazeAlgo(Maze maze,
Player player)
|
|
| Method Summary | |
|---|---|
boolean |
canMove(Direction direction)
|
Maze |
getMaze()
|
Player |
getPlayer()
|
void |
move(Direction direction)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Maze maze
private Player player
| Constructor Detail |
|---|
public PlayerStateForMazeAlgo(Maze maze,
Player player)
| Method Detail |
|---|
public boolean canMove(Direction direction)
public void move(Direction direction)
throws PlayerCannotMoveException
PlayerCannotMoveExceptionpublic Maze getMaze()
public Player getPlayer()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||