Exemple #1
0
        /// <summary>
        /// Hands control over to the next player.
        /// </summary>
        /// <remarks>DEBUG - This will be invoked as a handler once the user interface is built.</remarks>
        private void NextTurn()
        {
            currentTeam++;

            if (currentTeam > teamCount)
            {
                currentTeam = 1;
                turn++;
                board.ProgressGenerators();

                eventManager.Notify(new NewTurnEvent(turn));
            }

            playerState = new UnselectedPlayerState(players[currentTeam]);
            board.RefreshTeamEnergy(currentTeam);
            board.ActivateTeamTicks(currentTeam);

            eventManager.Notify(new NewPlayerTurnEvent(players[currentTeam]));
        }