Added hasBox to Player
This commit is contained in:
parent
6edcffc586
commit
f760ded0e4
@ -13,6 +13,10 @@ public class Player extends PlayerBase {
|
||||
zpmContainer = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean hasBox() {
|
||||
return (boxLifted != null);
|
||||
}
|
||||
|
||||
public void boxLift() {
|
||||
boxLifted = (Box) currentTile.getAdjacentTile(facingDirection).getABox();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user