Added hasBox to Player

This commit is contained in:
Bokros Bálint 2016-05-07 16:19:57 +02:00
parent 6edcffc586
commit f760ded0e4
1 changed files with 4 additions and 0 deletions

View File

@ -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();
}