static void Main(string[] args) { while (true) { Wizard wiz = new Wizard(); Dragon piff = new Dragon(); SKPInstructor rene = new SKPInstructor(); IFighter R1 = new Ridder(); IFighter R2 = new WizardAdapter(wiz); IFighter R3 = new DragonAdapter(piff); IFighter R4 = new RenéAdapter(rene); Console.WriteLine(Fight(R4, R3)); //Console.WriteLine("The winner is" + winnerAnnounce); Console.ReadKey(); } }
public DragonAdapter(Dragon dragon) { Piff = dragon; }