Spaces:
Running
Running
| public class MazeTile { | |
| public enum EntityType { | |
| EMPTY, GOAL, TRAP, POWER_UP | |
| } | |
| private EntityType entity = EntityType.EMPTY; | |
| private boolean trapActive = true; | |
| private boolean powerUpActive = true; | |
| public EntityType getEntity() { | |
| return entity; | |
| } | |
| public void setEntity(EntityType entity) { | |
| this.entity = entity; | |
| } | |
| public boolean isTrapActive() { | |
| return trapActive; | |
| } | |
| public void deactivateTrap() { | |
| this.trapActive = false; | |
| } | |
| public boolean isPowerUpActive() { | |
| return powerUpActive; | |
| } | |
| public void deactivatePowerUp() { | |
| this.powerUpActive = false; | |
| } | |
| public void setTrapActive(boolean active) { | |
| this.trapActive = active; | |
| } | |
| public void setPowerUpActive(boolean active) { | |
| this.powerUpActive = active; | |
| } | |
| } |