Add Seers course
This commit is contained in:
@ -3,16 +3,19 @@ package io.reisub.dreambot.cagility;
|
||||
import org.dreambot.api.methods.interactive.GameObjects;
|
||||
import org.dreambot.api.methods.interactive.Players;
|
||||
import org.dreambot.api.methods.map.Area;
|
||||
import org.dreambot.api.methods.map.Tile;
|
||||
import org.dreambot.api.wrappers.interactive.GameObject;
|
||||
|
||||
public class Obstacle {
|
||||
private final int id;
|
||||
private final Area[] areas;
|
||||
private final Area area;
|
||||
private final Tile[] walkingTiles;
|
||||
private Obstacle next;
|
||||
|
||||
public Obstacle(int id, Area... areas) {
|
||||
public Obstacle(int id, Area area, Tile... walkingTiles) {
|
||||
this.id = id;
|
||||
this.areas = areas;
|
||||
this.area = area;
|
||||
this.walkingTiles = walkingTiles;
|
||||
}
|
||||
|
||||
public int getID() {
|
||||
@ -32,12 +35,10 @@ public class Obstacle {
|
||||
}
|
||||
|
||||
public boolean isPlayerInArea() {
|
||||
for (Area area : areas) {
|
||||
if (area.contains(Players.localPlayer())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return area.contains(Players.localPlayer());
|
||||
}
|
||||
|
||||
return false;
|
||||
public Tile[] getWalkingTiles() {
|
||||
return walkingTiles;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user