From f11adc2fab45214e8bf4ca45e580ae1c4b669443 Mon Sep 17 00:00:00 2001 From: ericnerdo Date: Sat, 7 May 2016 15:22:42 +0200 Subject: [PATCH] boolean hasZPM() and hasBox() added to Tile.java. --- cicaprojekt/Tile.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/cicaprojekt/Tile.java b/cicaprojekt/Tile.java index b21a43e..c784559 100644 --- a/cicaprojekt/Tile.java +++ b/cicaprojekt/Tile.java @@ -71,4 +71,15 @@ public abstract class Tile { public String toString() { return String.format("%d, %d", x, y); } + + public boolean hasZPM() { + if(zpmOnTile == null) + return false; + else + return true; + } + + public boolean hasBox() { + return boxStack.isEmpty(); + } }