Update() public method

public Update ( ) : void
return void
コード例 #1
0
        public void UpdateTest()
        {
            int expected = 1200;

            target.Update(5);
            int actual = target.Score;

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        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();
                }
            }
        }
コード例 #3
0
        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;
            }
        }