Пример #1
0
 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;
 }
Пример #2
0
 public roboFighter(fighter thePlayer, string theName) : base(theName)
 {
     player = thePlayer;
 }