mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 08:39:07 +00:00
init, thx MrExtremez
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package redone.game.players;
|
||||
|
||||
public class PlayerAction {
|
||||
|
||||
Client c;
|
||||
|
||||
public PlayerAction(Client c) {
|
||||
this.c = c;
|
||||
}
|
||||
|
||||
public boolean inAction = false;
|
||||
public boolean canWalk = true;
|
||||
public boolean canEat = true;
|
||||
|
||||
public boolean setAction(boolean action) {
|
||||
return inAction = action;
|
||||
}
|
||||
|
||||
public boolean checkAction() {
|
||||
return inAction;
|
||||
}
|
||||
|
||||
public boolean canWalk(boolean walk) {
|
||||
return canWalk = walk;
|
||||
}
|
||||
|
||||
public boolean checkWalking() {
|
||||
return canWalk;
|
||||
}
|
||||
|
||||
public boolean canEat(boolean eat) {
|
||||
return canEat = eat;
|
||||
}
|
||||
|
||||
public boolean checkEating() {
|
||||
return canEat;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user