boolean hasZPM() and hasBox() added to Tile.java.
This commit is contained in:
parent
645028bc94
commit
f11adc2fab
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user