Class ShipWebNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.web.node.AbstractWebNode
-
- org.dreambot.api.methods.walking.web.node.impl.pathaware.ShipWebNode
-
- All Implemented Interfaces:
Locatable
public class ShipWebNode extends AbstractWebNode
-
-
Constructor Summary
Constructors Constructor Description ShipWebNode(Tile startingTile, Tile endingTile, java.lang.String entity, java.lang.String action, Condition requirements)
ShipWebNode(Tile startingTile, Tile endingTile, java.lang.String entity, java.lang.String action, Condition requirements, int coinCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
boolean
execute()
This is called by the walker to handle the actual walking, entity handling, or whatever else needed to get past this node.java.util.List<RequiredItem>
getRequiredItems()
static java.util.List<ShipWebNode>
getShipNodes()
WebNodeType
getType()
Returns the WebNodeType of this node, used during path finding to ensure they're not disabled by the scriptboolean
hasRequirements()
This is used to determine during path finding if the current player can use this nodejava.lang.String
toString()
-
Methods inherited from class org.dreambot.api.methods.walking.web.node.AbstractWebNode
addConnections, addDualConnections, addIncomingConnections, addOutgoingConnections, clear, distance, forceNext, getConnections, getGridX, getGridY, getIndex, getTile, getTileReference, getWeight, getX, getY, getZ, hashCode, initializeConnections, isValid, removeConnections, removeDualConnections, setConnections, setWeight, walkingDistance
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, canReach, tileDistance
-
-
-
-
Method Detail
-
getShipNodes
public static java.util.List<ShipWebNode> getShipNodes()
-
execute
public boolean execute()
Description copied from class:AbstractWebNode
This is called by the walker to handle the actual walking, entity handling, or whatever else needed to get past this node.- Overrides:
execute
in classAbstractWebNode
- Returns:
- true if the node is successfully handled, false otherwise
-
hasRequirements
public boolean hasRequirements()
Description copied from class:AbstractWebNode
This is used to determine during path finding if the current player can use this node- Overrides:
hasRequirements
in classAbstractWebNode
- Returns:
- true if it's usable by the current player, false otherwise
-
getType
public WebNodeType getType()
Description copied from class:AbstractWebNode
Returns the WebNodeType of this node, used during path finding to ensure they're not disabled by the script- Overrides:
getType
in classAbstractWebNode
- Returns:
- the type of web node
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractWebNode
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classAbstractWebNode
-
getRequiredItems
public java.util.List<RequiredItem> getRequiredItems()
- Overrides:
getRequiredItems
in classAbstractWebNode
-
-