Add Actor#isMoving
This commit is contained in:
@@ -290,4 +290,6 @@ public interface Actor extends Renderable, Locatable
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
boolean isDead();
|
boolean isDead();
|
||||||
|
|
||||||
|
boolean isMoving();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -292,4 +292,10 @@ public abstract class RSActorMixin implements RSActor
|
|||||||
event.setHitsplat(hitsplat);
|
event.setHitsplat(hitsplat);
|
||||||
client.getCallbacks().post(event);
|
client.getCallbacks().post(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
@Override
|
||||||
|
public boolean isMoving() {
|
||||||
|
return getPathLength() > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,4 +184,7 @@ public interface RSActor extends RSRenderable, Actor
|
|||||||
int getRunAnimation();
|
int getRunAnimation();
|
||||||
|
|
||||||
void setDead(boolean dead);
|
void setDead(boolean dead);
|
||||||
|
|
||||||
|
@Import("pathLength")
|
||||||
|
int getPathLength();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user