Class Path

java.lang.Object
com.mygdx.game.AI.Path
All Implemented Interfaces:
com.badlogic.gdx.ai.pfa.Connection<Node>

public class Path
extends java.lang.Object
implements com.badlogic.gdx.ai.pfa.Connection<Node>
The path that exists between 2 nodes not bidirectional
  • Constructor Summary

    Constructors
    Constructor Description
    Path​(Node f, Node t)  
  • Method Summary

    Modifier and Type Method Description
    float getCost()  
    Node getFromNode()  
    Node getToNode()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Path

      public Path​(Node f, Node t)
  • Method Details

    • getCost

      public float getCost()
      Specified by:
      getCost in interface com.badlogic.gdx.ai.pfa.Connection<Node>
    • getFromNode

      public Node getFromNode()
      Specified by:
      getFromNode in interface com.badlogic.gdx.ai.pfa.Connection<Node>
    • getToNode

      public Node getToNode()
      Specified by:
      getToNode in interface com.badlogic.gdx.ai.pfa.Connection<Node>