public Wizard() { AbstractFactory.Warrior elf = new AbstractFactory.Warrior(new AbstractFactory.WizardFactory()); elf.Hit(); elf.Move(); InitializeComponent(); this.ToolTip = elf.protection.ToString(); }
public Berserk() { AbstractFactory.Warrior berserk = new AbstractFactory.Warrior(new AbstractFactory.BerserkFactory()); berserk.Hit(); berserk.Move(); InitializeComponent(); this.ToolTip = berserk.protection.ToString(); }