Esempio n. 1
0
 /** 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();
   }
 }
Esempio n. 2
0
  @Override
  public void update() {
    super.update();

    for (Star s : m_stars) s.update();

    m_exitDoor.update();
  }
Esempio n. 3
0
  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);
  }