示例#1
0
文件: Form1.cs 项目: Tatheon/Task-1
        void TimerTickHandeler(object sender, EventArgs e)
        {
            game.Run();               //game logic will do their tasks
            game.world.UpdateWorld(); //update map
            DrawMap();                //show the map
            ShowUnits();

            if (game.gameOver)
            {
                round.Stop();
                lblMap.Text += "Winning team is" + game.WinningTeam;
            }
        }
示例#2
0
        void TimerTickHandeler(object sender, EventArgs e) //every tick on the timer, this must happen
        {
            game.Run();                                    //game logic will do their tasks
            game.world.UpdateWorld();                      //update map
            DrawMap();                                     //show the map
            ShowUnits();

            if (game.gameOver)
            {
                round.Stop();
                lblMap.Text     += "Winning team is" + game.WinningTeam;
                btnPause.Enabled = false;
            }
        }