Class AbstractWebNode

    • Constructor Detail

      • AbstractWebNode

        public AbstractWebNode​(int x,
                               int y,
                               int z)
      • AbstractWebNode

        public AbstractWebNode​(org.dreambot.internal.web.WebNodes.WebNode node)
    • Method Detail

      • getX

        public int getX()
        Description copied from interface: Locatable
        Gets X coordinate of the given object.
        Specified by:
        getX in interface Locatable
        Returns:
        the X coordinate of the object.
      • setX

        public void setX​(int x)
      • hasRequirements

        public boolean hasRequirements()
      • getGridX

        public int getGridX()
        Description copied from interface: Locatable
        Gets grid (local) X coordinate of the given object.
        Specified by:
        getGridX in interface Locatable
        Returns:
        the grid X coordinate of the object.
      • getGridY

        public int getGridY()
        Description copied from interface: Locatable
        Gets grid (local) Y coordinate of the given object.
        Specified by:
        getGridY in interface Locatable
        Returns:
        the grid Y coordinate of the object.
      • getZ

        public int getZ()
        Description copied from interface: Locatable
        Gets Z coordinate of the given object.
        Specified by:
        getZ in interface Locatable
        Returns:
        the Z coordinate of the object.
      • distance

        public double distance​(Tile tile)
        Description copied from interface: Locatable
        Distance (as the crow flies) away from the given tile.
        Specified by:
        distance in interface Locatable
        Parameters:
        tile - the destination tile.
        Returns:
        return the distance from the given tile as a double.
      • getTile

        public Tile getTile()
        Description copied from interface: Locatable
        Gets tile of the object.
        Specified by:
        getTile in interface Locatable
        Returns:
        the object tile.
      • getTileReference

        public TileReference getTileReference()
        Description copied from interface: Locatable
        Gets tile reference of the given object.
        Specified by:
        getTileReference in interface Locatable
        Returns:
        the object tile reference.
      • getY

        public int getY()
        Description copied from interface: Locatable
        Gets Y coordinate of the given object.
        Specified by:
        getY in interface Locatable
        Returns:
        the Y coordinate of the object.
      • setY

        public void setY​(int y)
      • addConnections

        public void addConnections​(AbstractWebNode... connections)
      • removeConnections

        public void removeConnections​(AbstractWebNode... connections)
      • getGX

        public int getGX()
      • getGX

        public int getGX​(java.awt.Point mapLoc)
      • getGX

        public int getGX​(int x)
      • getGY

        public int getGY()
      • getGY

        public int getGY​(java.awt.Point mapLoc)
      • getGY

        public int getGY​(int y)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • setConnections

        public void setConnections​(java.util.List<AbstractWebNode> connections)
      • getIndex

        public int getIndex()
      • forceNext

        public boolean forceNext()
      • isValid

        public boolean isValid()
      • walkingDistance

        public double walkingDistance​(Tile tile)
        Description copied from interface: Locatable
        Walking distance based on path finding away from the given tile. This is more expensive of a call than distance, and should be used sparingly.
        Specified by:
        walkingDistance in interface Locatable
        Parameters:
        tile - the destination tile.
        Returns:
        return the path distance movement cost from the given tile as a double. If there isn't a path to the tile, it will return 3 times the as the crow flies distance.