コード例 #1
0
        private void SetupGame()
        {
            //on setup, reset all variables to their defaults
            _boardState           = new BoardStateManager(_locationManager);
            _infectionDeckManager = new InfectionDeckManager(_locationManager);
            _cureDeckManager      = new CureDeckManager(_locationManager);
            _infectionDrawCount   = Properties.Settings.Default.DEFAULT_INFECTION_DRAW;

            DifficultyLevel diffLevel = GetDifficulty();

            _epidemicCards = (int)diffLevel;

            int playerCount = GetPlayerCount();

            for (int index = 1; index <= playerCount; index++)
            {
                _interactionManager.OutputContent(String.Format("CHARACTER CREATION FOR PLAYER {0}", index));
                _playerManager.AddPlayer(GetPlayerRole());
            }

            _interactionManager.OutputContent(String.Format("Epidemic Card Count for {0} is {1}", diffLevel.ToString(), _epidemicCards));
            _interactionManager.OutputContent(String.Format("Press any key to start game..."));
            _interactionManager.Pause();
            _interactionManager.ClearOutput();
        }