Beispiel #1
0
        public static void Character_FirstName()
        {
            string Character_FName;

            do
            {
                Console.Write("Character First Name: ");
                Character_FName = Console.ReadLine();
            } while (!Character_FName.All(char.IsLetter));
            if (Character_FName.Length > 12)
            {
                Console.WriteLine("Name is too long.");
                Character_Creation.Character_FirstName();
            }
            else
            {
                Character_LastName(Character_FName);
            }
        }
Beispiel #2
0
        public static void Character_LastName(string _character_Fname)
        {
            string Character_LName;
            string Character_Name;

            do
            {
                Console.Write("Character Last Name: ");
                Character_LName = Console.ReadLine();
            } while (!Character_LName.All(char.IsLetter));
            if (Character_LName.Length > 12)
            {
                Console.WriteLine("Name is too long.");
                Character_Creation.Character_LastName(_character_Fname);
            }
            else
            {
                Character_Name = _character_Fname + " " + Character_LName;
                Character_Class(Character_Name);
            }
        }