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