Esempio n. 1
0
        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;
            }
        }
Esempio n. 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;
            }
        }