Package com.mygdx.auber.Pathfinding
Class Path
- java.lang.Object
-
- com.mygdx.auber.Pathfinding.Path
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetCost()Returns the cost of the path.NodegetFromNode()Returns the node the path comes from.NodegetToNode()Returns the node the path goes to.voidrender(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer)Render method for rendering the paths between nodes, used for debugging purposes.
-
-
-
Method Detail
-
render
public void render(com.badlogic.gdx.graphics.glutils.ShapeRenderer shapeRenderer)
Render method for rendering the paths between nodes, used for debugging purposes.- Parameters:
shapeRenderer- The shape renderer being used.
-
getCost
public float getCost()
Returns the cost of the path.- Specified by:
getCostin interfacecom.badlogic.gdx.ai.pfa.Connection<Node>- Returns:
- A float containing the cost.
-
getFromNode
public Node getFromNode()
Returns the node the path comes from.- Specified by:
getFromNodein interfacecom.badlogic.gdx.ai.pfa.Connection<Node>- Returns:
- The origin node.
-
-