Class WebPathNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.pathfinding.impl.web.WebPathNode
-
- All Implemented Interfaces:
java.lang.Comparable<WebPathNode>
public class WebPathNode extends java.lang.Object implements java.lang.Comparable<WebPathNode>
-
-
Constructor Summary
Constructors Constructor Description WebPathNode(WebPathNode owner, AbstractWebNode current)
WebPathNode(WebPathNode owner, AbstractWebNode destination, AbstractWebNode current)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)
int
compareTo(WebPathNode o)
boolean
equals(java.lang.Object obj)
java.util.List<WebPathNode>
getConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)
double
getCost()
AbstractWebNode
getCurrent()
int
getDepth()
WebPathNode
getOwner()
int
getX()
int
getY()
int
getZ()
int
hashCode()
boolean
isValid()
java.lang.String
toString()
void
updateCost()
-
-
-
Constructor Detail
-
WebPathNode
@Deprecated public WebPathNode(WebPathNode owner, AbstractWebNode destination, AbstractWebNode current)
Deprecated.
-
WebPathNode
public WebPathNode(WebPathNode owner, AbstractWebNode current)
-
-
Method Detail
-
updateCost
public void updateCost()
-
getConnections
public java.util.List<WebPathNode> getConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)
-
addConnections
public void addConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)
-
getX
public int getX()
-
getY
public int getY()
-
getZ
public int getZ()
-
compareTo
public int compareTo(WebPathNode o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<WebPathNode>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
isValid
public boolean isValid()
-
getCurrent
public AbstractWebNode getCurrent()
-
getOwner
public WebPathNode getOwner()
-
getDepth
public int getDepth()
-
getCost
public double getCost()
-
-