cz.cuni.pogamut.Client
Class GameMapAStarMap

java.lang.Object
  extended by cz.cuni.pogamut.Client.GameMapAStarMap
All Implemented Interfaces:
AStarMap

public class GameMapAStarMap
extends java.lang.Object
implements AStarMap


Field Summary
static double DISTANCE_PRECISION
           
 
Constructor Summary
GameMapAStarMap()
           
 
Method Summary
 int getEdgeCost(java.lang.Object nodeFrom, java.lang.Object nodeTo)
          Should return the distance from nodeFrom to nodeTo You can be sure that nodeTo is among the neighbours of nodeFrom.
private  NavPoint getNavPoint(java.lang.Object node)
           
 java.util.Collection getNodeNeighbours(java.lang.Object node)
          This should return a collection of nodes which are connected to this one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISTANCE_PRECISION

public static final double DISTANCE_PRECISION
See Also:
Constant Field Values
Constructor Detail

GameMapAStarMap

public GameMapAStarMap()
Method Detail

getNavPoint

private NavPoint getNavPoint(java.lang.Object node)

getEdgeCost

public int getEdgeCost(java.lang.Object nodeFrom,
                       java.lang.Object nodeTo)
Description copied from interface: AStarMap
Should return the distance from nodeFrom to nodeTo You can be sure that nodeTo is among the neighbours of nodeFrom.

Specified by:
getEdgeCost in interface AStarMap
Returns:
cost of an edge

getNodeNeighbours

public java.util.Collection getNodeNeighbours(java.lang.Object node)
Description copied from interface: AStarMap
This should return a collection of nodes which are connected to this one.

Specified by:
getNodeNeighbours in interface AStarMap