Add CAgility script

This commit is contained in:
2021-10-18 15:39:52 +02:00
parent a4737f548a
commit bc6e82e409
8 changed files with 258 additions and 0 deletions

View File

@ -0,0 +1,39 @@
package io.reisub.dreambot.cagility;
import org.dreambot.api.methods.interactive.GameObjects;
import org.dreambot.api.wrappers.interactive.GameObject;
public class Obstacle {
private final int id;
private final boolean retry;
private Obstacle next;
public Obstacle(int id, boolean canRetry) {
this.id = id;
this.retry = canRetry;
}
public Obstacle(int id) {
this(id, false);
}
public int getID() {
return this.id;
}
public boolean canRetry() {
return this.retry;
}
public GameObject getGameObject() {
return GameObjects.closest(getID());
}
public Obstacle getNext() {
return this.next;
}
public void setNext(Obstacle next) {
this.next = next;
}
}