Class PassableObstacle
- java.lang.Object
-
- org.dreambot.api.methods.walking.pathfinding.impl.obstacle.PathObstacle
-
- org.dreambot.api.methods.walking.pathfinding.impl.obstacle.impl.PassableObstacle
-
- Direct Known Subclasses:
SOSDoor
public class PassableObstacle extends PathObstacle
Created with IntelliJ IDEA.- Since:
- : 3/31/2015 Time : 5:50 PM
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PassableObstacle.PassableObstacleBuilder
-
Constructor Summary
Constructors Constructor Description PassableObstacle(java.lang.String name, java.lang.String action)
Instantiates a new Path obstacle with name and actionPassableObstacle(java.lang.String name, java.lang.String action, Tile startTile, Tile endTile, Tile obstacleTile)
Instantiates a new Path obstacle with name action, and both primary and secondary tile.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDialogueOptions(java.lang.String... options)
PassableObstacle
duplicate(Tile obsTile)
Creates a new PathObstacle setting the obstacles tile Note: This MUST return a new PathObstacle with the correct obstacle tilejava.util.List<java.lang.String>
getDialogueOptions()
boolean
isCompleted()
Checks if the obstacle has been completedboolean
traverse()
Traverses the obstacle **NOTE** this is not abstract to preserve current compilation of existing overrides At some point when deprecated methods start to be removed, this *will* become abstract-
Methods inherited from class org.dreambot.api.methods.walking.pathfinding.impl.obstacle.PathObstacle
equals, exists, getAction, getCondition, getEndTile, getName, getObstacle, getObstacleTile, getPriority, getStartTile, hashCode, isValid, setAction, setCondition, setEndTile, setName, setObstacleTile, setStartTile
-
-
-
-
Constructor Detail
-
PassableObstacle
public PassableObstacle(java.lang.String name, java.lang.String action, Tile startTile, Tile endTile, Tile obstacleTile)
Instantiates a new Path obstacle with name action, and both primary and secondary tile.- Parameters:
name
- the name of the obstacle.action
- the action to preform to complete this obstacle.
-
PassableObstacle
public PassableObstacle(java.lang.String name, java.lang.String action)
Instantiates a new Path obstacle with name and action- Parameters:
name
- the name of the obstacle.action
- the action to preform to complete this obstacle.
-
-
Method Detail
-
addDialogueOptions
public void addDialogueOptions(java.lang.String... options)
-
duplicate
public PassableObstacle duplicate(Tile obsTile)
Description copied from class:PathObstacle
Creates a new PathObstacle setting the obstacles tile Note: This MUST return a new PathObstacle with the correct obstacle tile- Specified by:
duplicate
in classPathObstacle
- Parameters:
obsTile
- Obstacle's tile- Returns:
- duplicated PathObstacle
-
traverse
public boolean traverse()
Description copied from class:PathObstacle
Traverses the obstacle **NOTE** this is not abstract to preserve current compilation of existing overrides At some point when deprecated methods start to be removed, this *will* become abstract- Overrides:
traverse
in classPathObstacle
- Returns:
- true if successfully traversed
-
isCompleted
public boolean isCompleted()
Description copied from class:PathObstacle
Checks if the obstacle has been completed- Specified by:
isCompleted
in classPathObstacle
- Returns:
-
getDialogueOptions
public java.util.List<java.lang.String> getDialogueOptions()
-
-