org.almacha.achamaze
Class PlayerStateForMazeAlgo

java.lang.Object
  extended by org.almacha.achamaze.PlayerStateForMazeAlgo

public class PlayerStateForMazeAlgo
extends java.lang.Object

An instance of this class is given to a maze solving algorithm so that it knows the player situation.

Author:
almacha

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

maze

private Maze maze

player

private Player player
Constructor Detail

PlayerStateForMazeAlgo

public PlayerStateForMazeAlgo(Maze maze,
                              Player player)
Method Detail

canMove

public boolean canMove(Direction direction)

move

public void move(Direction direction)
          throws PlayerCannotMoveException
Throws:
PlayerCannotMoveException

getMaze

public Maze getMaze()

getPlayer

public Player getPlayer()