Class TollWebNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.web.node.AbstractWebNode
-
- org.dreambot.api.methods.walking.web.node.impl.TollWebNode
-
- All Implemented Interfaces:
Locatable
public class TollWebNode extends AbstractWebNode
Represents a toll node such as a gate
-
-
Constructor Summary
Constructors Constructor Description TollWebNode(int x, int y)TollWebNode(int x, int y, int z)TollWebNode(org.dreambot.internal.web.WebNodes.WebNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute()This is called by the walker to handle the actual walking, entity handling, or whatever else needed to get past this node.booleanforceNext()This is used to see if the walker shouldAbstractWebNode.execute()this node even if there's a web node further along theGlobalPaththat it can reach.java.lang.StringgetAction()AbstractWebNodegetDestination()java.lang.StringgetEntityName()java.util.List<RequiredItem>getRequiredItems()intgetToll()WebNodeTypegetType()Returns the WebNodeType of this node, used during path finding to ensure they're not disabled by the scriptbooleanhasRequirements()This is used to determine during path finding if the current player can use this nodebooleanisValid()Checks the validity of this web node to see if it should be considered at all during path findingvoidsetAction(java.lang.String action)voidsetDestination(AbstractWebNode destination)voidsetEntityName(java.lang.String entityName)voidsetToll(int toll)-
Methods inherited from class org.dreambot.api.methods.walking.web.node.AbstractWebNode
addConnections, addDualConnections, addIncomingConnections, addOutgoingConnections, clear, distance, equals, getConnections, getGridX, getGridY, getIndex, getTile, getTileReference, getWeight, getX, getY, getZ, hashCode, initializeConnections, removeConnections, removeDualConnections, setConnections, setWeight, toString, walkingDistance
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, canReach, getRegionId, tileDistance
-
-
-
-
Method Detail
-
getType
public WebNodeType getType()
Description copied from class:AbstractWebNodeReturns the WebNodeType of this node, used during path finding to ensure they're not disabled by the script- Overrides:
getTypein classAbstractWebNode- Returns:
- the type of web node
-
execute
public boolean execute()
Description copied from class:AbstractWebNodeThis is called by the walker to handle the actual walking, entity handling, or whatever else needed to get past this node.- Overrides:
executein classAbstractWebNode- Returns:
- true if the node is successfully handled, false otherwise
-
hasRequirements
public boolean hasRequirements()
Description copied from class:AbstractWebNodeThis is used to determine during path finding if the current player can use this node- Overrides:
hasRequirementsin classAbstractWebNode- Returns:
- true if it's usable by the current player, false otherwise
-
getDestination
public AbstractWebNode getDestination()
-
setDestination
public void setDestination(AbstractWebNode destination)
-
getEntityName
public java.lang.String getEntityName()
-
setEntityName
public void setEntityName(java.lang.String entityName)
-
getToll
public int getToll()
-
setToll
public void setToll(int toll)
-
getAction
public java.lang.String getAction()
-
setAction
public void setAction(java.lang.String action)
-
forceNext
public boolean forceNext()
Description copied from class:AbstractWebNodeThis is used to see if the walker shouldAbstractWebNode.execute()this node even if there's a web node further along theGlobalPaththat it can reach.This defaults to false, meaning that the walker can look for another web node further in the
GlobalPath.- Overrides:
forceNextin classAbstractWebNode- Returns:
- true if the walker should execute this node next no matter what, false otherwise
-
isValid
public boolean isValid()
Description copied from class:AbstractWebNodeChecks the validity of this web node to see if it should be considered at all during path finding- Overrides:
isValidin classAbstractWebNode- Returns:
- true if it's usable, false otherwise
-
getRequiredItems
public java.util.List<RequiredItem> getRequiredItems()
- Overrides:
getRequiredItemsin classAbstractWebNode
-
-