Пример #1
0
        public void runEndRound(GameTime gameTime)
        {
            Console.Write("runEndRound\n");
            currentRound = null;

            currentGame.completedRounds++;

            if (currentGame.completedRounds == 5)
            {
                currentApplicationState = GameState.EndGame;
                return;
            }

            currentApplicationState = GameState.StartRound;
        }
Пример #2
0
        public void runStartRound(GameTime gameTime)
        {
            currentGame.p1.money = 20 + currentGame.completedRounds * 10;
            currentGame.p2.money = 20 + currentGame.completedRounds * 10;

            if (currentGame.completedRounds == 4)
            {
                currentGame.p1.money += 15;
                currentGame.p2.money += 15;
            }


            Console.Write("runStartRound " + currentGame.p1.money + ":" + currentGame.p2.money + "\n");
            currentRound = new RoundSpecific(this);


            currentApplicationState = GameState.BuildPhase;
        }