/** Updates normally and then checks if the puzzle has been solved or not. */ @Override public void update(int delta) { super.update(delta); if (puzzle != null) { puzzle.solved(); } }
@Override public void update() { super.update(); for (Star s : m_stars) s.update(); m_exitDoor.update(); }
public void update() { super.update(); if (isLost()) lost = true; won = true; for (int i = 0; i < tiles.length; i++) { if (getTile(i % width, i / width) instanceof CorruptedTile) won = false; } if (won) GameState.changeState(GameState.WON); }