예제 #1
0
        public Wizard()
        {
            AbstractFactory.Warrior elf = new AbstractFactory.Warrior(new AbstractFactory.WizardFactory());
            elf.Hit();
            elf.Move();

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

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