Package com.mygdx.game.AI
Class Path
- java.lang.Object
-
- com.mygdx.game.AI.Path
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getCost()
Node
getFromNode()
Node
getToNode()
-
-
-
Method Detail
-
getCost
public float getCost()
- Specified by:
getCost
in interfacecom.badlogic.gdx.ai.pfa.Connection<Node>
- Returns:
- the cost of traveling the path
-
getFromNode
public Node getFromNode()
- Specified by:
getFromNode
in interfacecom.badlogic.gdx.ai.pfa.Connection<Node>
- Returns:
- the start node of the path
-
-