diff --git a/src/org/apollo/game/model/Player.java b/src/org/apollo/game/model/Player.java index a635745c..214b31bf 100644 --- a/src/org/apollo/game/model/Player.java +++ b/src/org/apollo/game/model/Player.java @@ -89,8 +89,6 @@ public final class Player extends Character { } } - - /** * The player's appearance. @@ -157,6 +155,11 @@ public final class Player extends Character { */ private boolean regionChanged = false; + /** + * A flag indicating if this player is running. + */ + private boolean running = false; + /** * The {@link GameSession} currently attached to this {@link Player}. */ @@ -625,4 +628,23 @@ public final class Player extends Character { + privilegeLevel + "]"; } + /** + * Gets whether the player is running or not. + * + * @return {@code true} if the player is running, otherwise {@code false}. + */ + public boolean isRunning() { + return running; + } + + /** + * Sets whether the running toggle is enabled. + * + * @param running The toggle. + */ + public void setRunning(boolean running) { + this.running = running; + getWalkingQueue().setRunningQueue(running); + } + } \ No newline at end of file