Class DestructableObstacle
- java.lang.Object
-
- org.dreambot.api.methods.walking.pathfinding.impl.obstacle.PathObstacle
-
- org.dreambot.api.methods.walking.pathfinding.impl.obstacle.impl.DestructableObstacle
-
public class DestructableObstacle 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
DestructableObstacle.DestructableObstacleBuilder
-
Constructor Summary
Constructors Constructor Description DestructableObstacle(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, using Optional wrappers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DestructableObstacle
duplicate(Tile obsTile)
Duplicates the current PathObstacle and sets the obstacle's tile to given tileboolean
isCompleted()
Checks if the obstacle has been completed-
Methods inherited from class org.dreambot.api.methods.walking.pathfinding.impl.obstacle.PathObstacle
equals, exists, getAction, getEndTile, getName, getObstacle, getObstacleTile, getPriority, getStartTile, hashCode, isValid, setAction, setEndTile, setName, setObstacleTile, setStartTile, traverse
-
-
-
-
Constructor Detail
-
DestructableObstacle
public DestructableObstacle(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, using Optional wrappers.- Parameters:
name
- the name of the obstacle.action
- the action to preform to complete this obstacle.
-
-
Method Detail
-
duplicate
public DestructableObstacle duplicate(Tile obsTile)
Description copied from class:PathObstacle
Duplicates the current PathObstacle and sets the obstacle's tile to given tile- Specified by:
duplicate
in classPathObstacle
- Parameters:
obsTile
- Obstacle's tile- Returns:
- duplicated PathObstacle
-
isCompleted
public boolean isCompleted()
Description copied from class:PathObstacle
Checks if the obstacle has been completed- Specified by:
isCompleted
in classPathObstacle
- Returns:
-
-