Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var swordsman = UnitFactory.CreateSwordsman();
            var archer    = UnitFactory.CreateArcher();
            var paladin   = UnitFactory.CreatePaladin();

            swordsman.Attack(archer);
            archer.AttackWithActiveSkill(swordsman);

            paladin.Attack(swordsman);
        }