public void SetSolo() { String name = this.Name; Console.WriteLine(name + ", Choose your new solo!"); this.solo = ChooseSolo(); }
private ISolo ChooseSolo() { ISolo SickSolo = null; menu = new SoloMenu(); menu.PrintMenu(); String input = Console.ReadLine(); int SwitchNum = 0; bool result = int.TryParse(input, out SwitchNum); if (result) { switch (SwitchNum) { case 1: SickSolo = new SoloFire(); break; case 2: SickSolo = new SoloJump(); break; case 3: SickSolo = new SoloSmash(); break; default: SickSolo = new DefaultSolo(); break; } return(SickSolo); } else { return(new DefaultSolo()); } }
public GameCharacter() { this.name = ChooseCharacter(); this.guitar = ChooseGuitar(); this.solo = ChooseSolo(); }