} //Forces the user to write one of the correct answears public static string ChoiseIsNot(string[] wrongAnswears, string answear) //Forces the user to not write one of the wrong answears { bool whileAnswearWrong = true; while (whileAnswearWrong == true) { bool wrong = false; for (int i = 0; i < wrongAnswears.Length; i++) { if (answear == wrongAnswears[i]) { if (answear == "") { Klasser.WriteLine("You can't leave it blank!!", true); } else { Klasser.WriteLine("You can't write that!", true); } Klasser.Write("New name: ", true); answear = Console.ReadLine(); wrong = true; break; } if (wrong == false) { whileAnswearWrong = false; } } } return(answear); } //Forces the user to not write one of the wrong answears
//Preperations public void NameYourFighter(Fighters fighter) //This code block is for allowing the player rename their character { Console.Clear(); Klasser.WriteLine("Name your fighter!", true); Klasser.Write("Name: ", true); string newName = Console.ReadLine(); fighter.Name = newName; } //This code block is for allowing the player rename their character
} //This code block is for allowing the player rename their character public Fighters PresentFighterKlass(bool player) //This code block presents the three different fighter klass { if (player == false) { Console.Clear(); Console.WriteLine("Choose a fighter klass"); Klasser.WriteLine("\nFighter 1: \nHp: High\nDamage: Medium\nHitchance: Low", true); Klasser.WriteLine("\nFighter 2: \nHp: Medium\nDamage: Medium\nHitchance: Medium", true); Klasser.WriteLine("\nFighter 3: \nHp: Low\nDamage: High\nHitchance: High\n", true); Klasser.Write("Choose fighter: ", true); } return(chooseFighter(player)); } //This code block presents the three different fighter klass