コード例 #1
0
        static void Main(string[] args)
        {
            bool             isRunning     = true;
            List <Character> CharacterList = new List <Character>();

            while (isRunning)
            {
                Character character = new Character();

                character.ShowNamesFromDataBase();
                Console.Clear();

                character.RaceSelector(character);

                character.CharacterNaming(character);

                Console.WriteLine("All right {0} now its time to roll your stats", character.name);
                Thread.Sleep(1000);
                character.StatSelectorAndRolling(character);
                Console.Clear();

                character.ClassSelector(character);

                character.AlignmentSelector(character);

                Console.WriteLine("YOUR CHARACTER \n" +
                                  "Name: " + character.name + "\n" +
                                  "Race: " + character.race + "\n" +
                                  "Class: " + character.characterClass + "\n" +
                                  "Alignment: " + character.alignment + "\n" +
                                  "\n" +
                                  "Strength: " + character.strength + "\n" +
                                  "Dexterity: " + character.dexterity + "\n" +
                                  "Constitution: " + character.constitution + "\n" +
                                  "Intelligence: " + character.intelligence + "\n" +
                                  "Wisdom: " + character.wisdom + "\n" +
                                  "Charisma: " + character.charisma + "\n");
                Console.ReadKey();
                character.WriteToTxtDocument(character);
                Console.Clear();
                CharacterList.Add(character);
                character.AddToDatabase(character);
                character.ListShowing(CharacterList);
            }
        }