Beispiel #1
0
        /// <summary>
        /// Called when the turn is updated. Sets the current player to the other player and then calls Grid.TurnUpdate.
        /// </summary>
        public void TurnUpdate(GameTime t)
        {
            // Change the current player
            SelectNextPlayer();

            if (turnNum == 1)
            {
                MaxOfEmpires.camera.Reset();
                if (CurrentPlayer == battleGrid.attackingPlayer)
                {
                    MaxOfEmpires.camera.setDownRight();
                }
            }

            // TurnUpdate the grid
            battleGrid.TurnUpdate(turnNum, CurrentPlayer, t);
            UpdateOverlayInformation();
        }