public void UpdateTest() { int expected = 1200; target.Update(5); int actual = target.Score; Assert.AreEqual(expected, actual); }
public void Update() { board.Update(); if (0 < board.DeletedRowNum) { recorder.Update(board.DeletedRowNum); this.timer.Interval = recorder.TickInterval; if (page.IsSoundOn) { AudioPlayer.Play("DeleteRows", board.DeletedRowNum); } } if (board.IsGameOver) { if (page.IsSoundOn) { AudioPlayer.Play("GameOver", 1); } this.Stop(); showGameOver(); if (recorder.IsNewRecord) { showNameInput(); } } }
public override void Update(GameTime gametime) { base.Update(gametime); Recorder.Update(); if (Pause == PauseState.Unpaused || Pause == PauseState.PauseStep) { FightEngine.Update(gametime); } if (Pause == PauseState.PauseStep) { m_pause = PauseState.Paused; } }