public mainmenu() { int choice; string name; Console.Write("what is your name"); name = Console.ReadLine(); player = new fighter(name); Console.Write("What is your oppoinent name"); name = Console.ReadLine(); opponent = new roboFighter(player, name); range = 10; }
public roboFighter(fighter thePlayer, string theName) : base(theName) { player = thePlayer; }