Class ClimbableObstacle
- java.lang.Object
-
- org.dreambot.api.methods.walking.pathfinding.impl.obstacle.PathObstacle
-
- org.dreambot.api.methods.walking.pathfinding.impl.obstacle.impl.ClimbableObstacle
-
public class ClimbableObstacle 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
ClimbableObstacle.ClimbableObstacleBuilder
Builder class used to create a new ClimbableObstacleBuilder new ClimbableObstacle.ClimbableObstacleBuilder("Staircase","Climb-up").createClimbableObstacle();
-
Constructor Summary
Constructors Constructor Description ClimbableObstacle(java.lang.String name, java.lang.String action)
Creates a new ClimbableObstacleClimbableObstacle(java.lang.String name, java.lang.String action, Tile startTile, Tile endTile, Tile obstacleTile)
Creates a new ClimbableObstacle
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClimbableObstacle
duplicate(Tile obsTile)
Creates a new PathObstacle setting the obstacles tile Note: This MUST return a new PathObstacle with the correct obstacle 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, getCondition, getEndTile, getName, getObstacle, getObstacleTile, getPriority, getStartTile, hashCode, isValid, setAction, setCondition, setEndTile, setName, setObstacleTile, setStartTile, traverse
-
-
-
-
Constructor Detail
-
ClimbableObstacle
public ClimbableObstacle(java.lang.String name, java.lang.String action, Tile startTile, Tile endTile, Tile obstacleTile)
Creates a new ClimbableObstacle- Parameters:
name
- Name of the obstacleaction
- Action to interact with the obstaclestartTile
- The tile you'll be on/near to start the obstacleendTile
- The tile you'll be on/near/be able to access after the obstacleobstacleTile
- The tile of the obstacle
-
ClimbableObstacle
public ClimbableObstacle(java.lang.String name, java.lang.String action)
Creates a new ClimbableObstacle- Parameters:
name
- Name of the obstacleaction
- Action to interact with the obstacle
-
-
Method Detail
-
duplicate
public ClimbableObstacle 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
-
isCompleted
public boolean isCompleted()
Description copied from class:PathObstacle
Checks if the obstacle has been completed- Specified by:
isCompleted
in classPathObstacle
- Returns:
-
-