Class 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 Detail

      • Path

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

      • 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>