Class PfNode

  • All Implemented Interfaces:
    com.badlogic.gdx.ai.pfa.indexed.IndexedNode<PfNode>, Position, java.io.Serializable


    public class PfNode
    extends Coordinate
    implements com.badlogic.gdx.ai.pfa.indexed.IndexedNode<PfNode>
    See Also:
    Serialized Form
    • Constructor Detail

      • PfNode

        public PfNode​(Coordinate coord,
                      int index)
        Parameters:
        coord -
        index -
      • PfNode

        public PfNode​(Coordinate coord)
        Parameters:
        coord -
    • Method Detail

      • calculateIndex

        public int calculateIndex​()
        Returns:
      • getIndex

        public int getIndex​()
        Specified by:
        getIndex in interface com.badlogic.gdx.ai.pfa.indexed.IndexedNode<PfNode>
      • getConnections

        public com.badlogic.gdx.utils.Array<com.badlogic.gdx.ai.pfa.Connection<PfNode>> getConnections​()
        Specified by:
        getConnections in interface com.badlogic.gdx.ai.pfa.indexed.IndexedNode<PfNode>