public void LaunchMissile() { string type = UserInputValidator.ReadMissileTypeName("Enter missile type to launch:"); Console.WriteLine("Enter amount of missiles to launch"); int amount = UserInputValidator.ReadIntParser(); LaunchissileChecker(type, amount); }
public static Missile CreateMissile(LauncherController LaunHandler) { string type = UserInputValidator.ReadMissileTypeName("Which Type of missile would you like to create?"); LauncherMenuRunner.ShowTechniquesMenu(LaunHandler.Launcher); ITechnique tech = UserInputValidator.GetChoiceOfDictionary <int, ITechnique>(LaunHandler.Launcher.LaunchTechniques); while (tech.TargetMissile != type) { Console.WriteLine($"The technique does not fit to {type} missile, please choose the currect on:"); tech = UserInputValidator.GetChoiceOfDictionary <int, ITechnique>(LaunHandler.Launcher.LaunchTechniques); } return(CreateMissile(type, tech)); }