Class MapHeuristic

  • All Implemented Interfaces:
    com.badlogic.gdx.ai.pfa.Heuristic<Junction>

    public class MapHeuristic
    extends java.lang.Object
    implements com.badlogic.gdx.ai.pfa.Heuristic<Junction>
    This class creates the Heuristic that should be used when finding a path
    • Constructor Summary

      Constructors 
      Constructor Description
      MapHeuristic()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float estimate​(Junction currentNode, Junction nextNode)  
      • Methods inherited from class java.lang.Object

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

      • MapHeuristic

        public MapHeuristic()
    • Method Detail

      • estimate

        public float estimate​(Junction currentNode,
                              Junction nextNode)
        Specified by:
        estimate in interface com.badlogic.gdx.ai.pfa.Heuristic<Junction>