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 floatgetCost()NodegetFromNode()NodegetToNode()
-
-
-
Method Detail
-
getCost
public float getCost()
- Specified by:
getCostin interfacecom.badlogic.gdx.ai.pfa.Connection<Node>- Returns:
- the cost of traveling the path
-
getFromNode
public Node getFromNode()
- Specified by:
getFromNodein interfacecom.badlogic.gdx.ai.pfa.Connection<Node>- Returns:
- the start node of the path
-
-