Class EntranceWebNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.web.node.AbstractWebNode
-
- org.dreambot.api.methods.walking.web.node.impl.EntranceWebNode
-
- All Implemented Interfaces:
Locatable
public class EntranceWebNode extends AbstractWebNode
Web node that uses an object to go somewhere on a different plane or far away Default weight of 25
-
-
Constructor Summary
Constructors Constructor Description EntranceWebNode(int x, int y)
EntranceWebNode(int x, int y, int z)
EntranceWebNode(int x, int y, int z, java.lang.String entityName, java.lang.String action)
EntranceWebNode(Tile tile, java.lang.String entityName, java.lang.String action)
EntranceWebNode(org.dreambot.internal.web.WebNodes.WebNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
This is called by the walker to handle the actual walking, entity handling, or whatever else needed to get past this node.boolean
execute(AbstractWebNode nextNode)
boolean
forceNext()
This is used to see if the walker shouldAbstractWebNode.execute()
this node even if there's a web node further along theGlobalPath
that it can reach.java.lang.String
getAction()
java.lang.String[]
getActions()
Condition
getCondition()
java.lang.String
getEntityName()
Tile
getForcedObjTile()
java.util.List<RequiredItem>
getRequiredItems()
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 nodeboolean
isUseSleeps()
boolean
isValid()
Checks the validity of this web node to see if it should be considered at all during path findingvoid
setAction(java.lang.String action)
void
setActions(java.lang.String[] actions)
void
setCondition(Condition condition)
void
setEntityName(java.lang.String entityName)
void
setForcedObjTile(Tile forcedObjTile)
void
setUseSleeps(boolean useSleeps)
java.lang.String
toString()
-
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, walkingDistance
-
Methods inherited from interface org.dreambot.api.wrappers.interactive.Locatable
canReach, canReach, tileDistance
-
-
-
-
Constructor Detail
-
EntranceWebNode
public EntranceWebNode(int x, int y)
-
EntranceWebNode
public EntranceWebNode(int x, int y, int z)
-
EntranceWebNode
public EntranceWebNode(int x, int y, int z, java.lang.String entityName, java.lang.String action)
-
EntranceWebNode
public EntranceWebNode(Tile tile, java.lang.String entityName, java.lang.String action)
-
EntranceWebNode
public EntranceWebNode(org.dreambot.internal.web.WebNodes.WebNode node)
-
-
Method Detail
-
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
-
execute
public boolean execute(AbstractWebNode nextNode)
-
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
-
forceNext
public boolean forceNext()
Description copied from class:AbstractWebNode
This is used to see if the walker shouldAbstractWebNode.execute()
this node even if there's a web node further along theGlobalPath
that it can reach.This defaults to false, meaning that the walker can look for another web node further in the
GlobalPath
.- Overrides:
forceNext
in classAbstractWebNode
- Returns:
- true if the walker should execute this node next no matter what, false otherwise
-
isValid
public boolean isValid()
Description copied from class:AbstractWebNode
Checks the validity of this web node to see if it should be considered at all during path finding- Overrides:
isValid
in classAbstractWebNode
- Returns:
- true if it's usable, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractWebNode
-
getEntityName
public java.lang.String getEntityName()
-
getAction
public java.lang.String getAction()
-
getActions
public java.lang.String[] getActions()
-
getCondition
public Condition getCondition()
-
isUseSleeps
public boolean isUseSleeps()
-
getForcedObjTile
public Tile getForcedObjTile()
-
getRequiredItems
public java.util.List<RequiredItem> getRequiredItems()
- Overrides:
getRequiredItems
in classAbstractWebNode
-
setEntityName
public void setEntityName(java.lang.String entityName)
-
setAction
public void setAction(java.lang.String action)
-
setActions
public void setActions(java.lang.String[] actions)
-
setCondition
public void setCondition(Condition condition)
-
setUseSleeps
public void setUseSleeps(boolean useSleeps)
-
setForcedObjTile
public void setForcedObjTile(Tile forcedObjTile)
-
-