boolean hasZPM() and hasBox() added to Tile.java.

This commit is contained in:
ericnerdo 2016-05-07 15:22:42 +02:00
parent 645028bc94
commit f11adc2fab

View File

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