Esempio n. 1
0
 private static void ChooseName()
 {
     if (string.IsNullOrWhiteSpace(currentDisplay.GetOutput()))
     {
         return;
     }
     else
     {
         currentDisplay.ClearOutput();
         string        playerName = currentDisplay.GetOutput().Trim();
         string        check      = playerName.CapitalizeFirstLetter();
         PlayerCreator pc;
         if (!SpecialCharacters.specialCharacterLookup.ContainsKey(check))
         {
             pc = new PlayerCreator(playerName);
             CharacterCreation creator = new CharacterCreation(currentDisplay, pc);
             creator.SetGenderGeneric();
         }
         else
         {
             PromptSpecial(check);
         }
         currentDisplay.ClearInputData();
     }
 }
Esempio n. 2
0
        public static void NewGamePlus(PlayerBase currentPlayer)
        {
            if (currentDisplay == null)
            {
                currentDisplay = new StandardDisplay();
            }
            currentDisplay.ClearOutput();

            //parse the current player to New Game Plus related PlayerCreator;
            PlayerCreator     pc      = new PlayerCreator(currentPlayer.name);
            CharacterCreation creator = new CharacterCreation(currentDisplay, pc, true);

            creator.SetGenderGeneric();
            throw new Backend.Tools.InDevelopmentExceptionThatBreaksOnRelease();
        }