Class GlobalPath<T extends AbstractWebNode>

  • All Implemented Interfaces:
    java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>

    public class GlobalPath<T extends AbstractWebNode>
    extends AbstractPath<T>
    Created with IntelliJ IDEA.
    Since:
    : 1/10/2015 Time : 10:55 PM
    • Constructor Detail

      • GlobalPath

        public GlobalPath()
    • Method Detail

      • walk

        public boolean walk()
        Walks the next point in the path
        Specified by:
        walk in class AbstractPath<T extends AbstractWebNode>
        Returns:
        True if walked, else false
      • hasSpecialNode

        public boolean hasSpecialNode()
      • closest

        public T closest()
        Gets the closest node to your player
        Returns:
        T
      • closest

        public T closest​(Tile tile)
        Gets the closest node to specified tile
        Parameters:
        tile - Tile to find node near
        Returns:
        T
      • getFinalCost

        public int getFinalCost()
      • setFinalCost

        public void setFinalCost​(int finalCost)