Added hasBox to Player

This commit is contained in:
Bokros Bálint 2016-05-07 16:19:57 +02:00
parent 6edcffc586
commit f760ded0e4

View File

@ -13,6 +13,10 @@ public class Player extends PlayerBase {
zpmContainer = new ArrayList<>(); zpmContainer = new ArrayList<>();
} }
public boolean hasBox() {
return (boxLifted != null);
}
public void boxLift() { public void boxLift() {
boxLifted = (Box) currentTile.getAdjacentTile(facingDirection).getABox(); boxLifted = (Box) currentTile.getAdjacentTile(facingDirection).getABox();
} }