Exemplo n.º 1
0
        static void Main()
        {
            // First Phantom:
            PhantomDancer phantomDancer = new PhantomDancer();

            phantomDancer.ShowHeroStats();
            Console.WriteLine(phantomDancer.getUltimate()[0]);

            // First clone of Phantom:
            PhantomDancer clonePhantomDancer = (PhantomDancer)phantomDancer.Clone();

            clonePhantomDancer.ShowHeroStats();
            Console.WriteLine(clonePhantomDancer.getUltimate()[0]);

            // Second clone of Phantom:
            Hero secondPhantomDancer = (PhantomDancer)phantomDancer.Clone();

            secondPhantomDancer.ShowHeroStats();
            Console.WriteLine(secondPhantomDancer.getUltimate()[0]);

            // Second clone of Mage:
            Hero antiMage = new AntiMage();

            antiMage.ShowHeroStats();
            Console.WriteLine(antiMage.getUltimate()[0]);

            PhantomDancer newTryHero = new PhantomDancer(phantomDancer);

            newTryHero.ShowHeroStats();
            Console.WriteLine(clonePhantomDancer.getUltimate()[0]);


            Console.ReadKey();
        }
Exemplo n.º 2
0
 public AntiMage(AntiMage mage)
 {
     name         = mage.name;
     agility      = mage.agility;
     intelligence = mage.intelligence;
     strength     = mage.strength;
     strikePwr    = mage.strikePwr;
     item         = mage.item;
 }
Exemplo n.º 3
0
 public AntiMageOrbWalker(AntiMage hero)
     : base(hero)
 {
     this.hero = hero;
 }
Exemplo n.º 4
0
 public AntiMageCombo(AntiMage hero)
     : base(hero)
 {
     this.AntiMage = hero;
 }