Inheritance: Microsoft.Xna.Framework.Game
Esempio n. 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
Esempio n. 2
0
File: Round.cs Progetto: Arasho/GR
        public static bool EndRound(Game1 g)
        {
            if (putElement == false)
            {
                MessageBox.Show("Musisz wylozyc kafelke z elementem planszy");
                return false;
            }
            else if (putPown == false && (Game1.listOfPlayers[numberOfActivePlayer - 1].NumberOfLittlePowns > 0))
            {
                DialogResult respone = MessageBox.Show(
                    "Nie wylozyłes zadnego pionka. Czy chesz wylozyc przed zakonczeniem swojej tury?",
                    "Brak pionka", MessageBoxButtons.YesNo);

                if (respone == DialogResult.Yes)
                {
                    g.CanStone = true;
                    return false;
                }
                else
                {
                    g.CanStone = false;
                    return true;
                }
            }
            else
            {
                g.CanStone = false;
                return true;
            }
        }