Files
2006Scape/2006Redone Server/src/redone/game/players/PlayerAction.java
T
2019-06-18 15:04:35 -04:00

39 lines
632 B
Java

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;
}
}