Esempio n. 1
0
        public Wizard()
        {
            AbstractFactory.Warrior elf = new AbstractFactory.Warrior(new AbstractFactory.WizardFactory());
            elf.Hit();
            elf.Move();

            InitializeComponent();
            this.ToolTip = elf.protection.ToString();
        }
Esempio n. 2
0
        public Berserk()
        {
            AbstractFactory.Warrior berserk = new AbstractFactory.Warrior(new AbstractFactory.BerserkFactory());
            berserk.Hit();
            berserk.Move();

            InitializeComponent();
            this.ToolTip = berserk.protection.ToString();
        }