rlgamekit.pathfinding
Interface PathDestination

All Known Implementing Classes:
CoordinatePathDestination

public interface PathDestination

The pathfinding code will check "destination reached" conditions through this interface.


Method Summary
 boolean isDestinationReached(int posX, int posY)
          Checks if the destination has been reached.
 

Method Detail

isDestinationReached

boolean isDestinationReached(int posX,
                             int posY)
Checks if the destination has been reached.

Parameters:
posX - The x coordinate to check
posY - The y coordinate to check
Returns:
true if move is allowed, false otherwise