From f760ded0e4aa450a1b7acb20cdeda172284eec6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 7 May 2016 16:19:57 +0200 Subject: [PATCH] Added hasBox to Player --- cicaprojekt/Player.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cicaprojekt/Player.java b/cicaprojekt/Player.java index 667381c..2dad2d4 100644 --- a/cicaprojekt/Player.java +++ b/cicaprojekt/Player.java @@ -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(); }