|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.Client.GameMapAStarMap
public class GameMapAStarMap
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 |
---|
public static final double DISTANCE_PRECISION
Constructor Detail |
---|
public GameMapAStarMap()
Method Detail |
---|
private NavPoint getNavPoint(java.lang.Object node)
public int getEdgeCost(java.lang.Object nodeFrom, java.lang.Object nodeTo)
AStarMap
getEdgeCost
in interface AStarMap
public java.util.Collection getNodeNeighbours(java.lang.Object node)
AStarMap
getNodeNeighbours
in interface AStarMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |