コード例 #1
0
        public List <Cards> CreateDeck(List <Cards> FirstList)
        {
            Minions Wisp = new Minions("Wisp", 0, 0, 0, 1, 1, 0); Minions Wisp2 = new Minions("Wisp", 0, 0, 0, 1, 1, 0); Minions Wisp3 = new Minions("Wisp", 0, 0, 0, 1, 1, 0);
            Minions BOgre = new Minions("Boulderfist Ogre", 6, 0, 0, 7, 6, 0); Minions BOgre2 = new Minions("Boulderfist Ogre", 6, 0, 0, 7, 6, 0); Minions BOgre3 = new Minions("Boulderfist Ogre", 6, 0, 0, 7, 6, 0);
            Minions WGolem = new Minions("War Golem", 7, 0, 0, 7, 7, 0); Minions WGolem2 = new Minions("War Golem", 7, 0, 0, 7, 7, 0); Minions WGolem3 = new Minions("War Golem", 7, 0, 0, 7, 7, 0);
            Minions CHound = new Minions("Core Hound", 7, 0, 0, 5, 9, 0); Minions CHound2 = new Minions("Core Hound", 7, 0, 0, 5, 9, 0); Minions CHound3 = new Minions("Core Hound", 7, 0, 0, 5, 9, 0);
            Minions magma_rager = new Minions("Magma Rager", 3, 0, 0, 1, 5, 0); Minions magma_rager2 = new Minions("Magma Rager", 3, 0, 0, 1, 5, 0); Minions magma_rager3 = new Minions("Magma Rager", 3, 0, 0, 1, 5, 0);
            Minions chidwind_yeti = new Minions("Childwind Yeti", 4, 0, 0, 5, 4, 0); Minions chidwind_yeti2 = new Minions("Childwind Yeti", 4, 0, 0, 5, 4, 0); Minions chidwind_yeti3 = new Minions("Childwind Yeti", 4, 0, 0, 5, 4, 0);
            Minions oasis_snapjaw = new Minions("Oasis Snapjaw", 4, 0, 0, 7, 2, 0); Minions oasis_snapjaw2 = new Minions("Oasis Snapjaw", 4, 0, 0, 7, 2, 0); Minions oasis_snapjaw3 = new Minions("Oasis Snapjaw", 4, 0, 0, 7, 2, 0);
            Minions MurlocRaider = new Minions("Murloc Raider", 1, 0, 0, 1, 2, 1); Minions MurlocRaider2 = new Minions("Murloc Raider", 1, 0, 0, 1, 2, 1); Minions MurlocRaider3 = new Minions("Murloc Raider", 1, 0, 0, 1, 2, 1);
            Minions BloodfenRaptor = new Minions("Bloodfen Raptor", 2, 0, 0, 2, 3, 3); Minions BloodfenRaptor2 = new Minions("Bloodfen Raptor", 2, 0, 0, 2, 3, 3); Minions BloodfenRaptor3 = new Minions("Bloodfen Raptor", 2, 0, 0, 2, 3, 3);
            Minions RiverCrocolisk = new Minions("River Crocolisk", 2, 0, 0, 3, 2, 3); Minions RiverCrocolisk2 = new Minions("River Crocolisk", 2, 0, 0, 3, 2, 3); Minions RiverCrocolisk3 = new Minions("River Crocolisk", 2, 0, 0, 3, 2, 3);



            FirstList.Add(Wisp); FirstList.Add(Wisp2); FirstList.Add(Wisp3);
            FirstList.Add(BOgre); FirstList.Add(BOgre2); FirstList.Add(BOgre3);
            FirstList.Add(CHound); FirstList.Add(CHound2); FirstList.Add(CHound3);
            FirstList.Add(RiverCrocolisk); FirstList.Add(RiverCrocolisk2); FirstList.Add(RiverCrocolisk3);
            FirstList.Add(oasis_snapjaw); FirstList.Add(oasis_snapjaw2); FirstList.Add(oasis_snapjaw3);
            FirstList.Add(chidwind_yeti); FirstList.Add(chidwind_yeti2); FirstList.Add(chidwind_yeti3);
            FirstList.Add(WGolem); FirstList.Add(WGolem2); FirstList.Add(WGolem3);
            FirstList.Add(magma_rager); FirstList.Add(magma_rager2); FirstList.Add(magma_rager3);
            FirstList.Add(MurlocRaider); FirstList.Add(MurlocRaider2); FirstList.Add(MurlocRaider3);
            FirstList.Add(BloodfenRaptor); FirstList.Add(BloodfenRaptor2); FirstList.Add(BloodfenRaptor3);

            return(FirstList);
        }
コード例 #2
0
        public void HeroPower(Player Enemy)
        {
            if (this.PowerRest == true)
            {
                if (this.CurrentMana > 2)
                {
                    if (Class == 1)
                    {
                        Armor = Armor + 2;
                    }
                    else if (Class == 2) // Shaman //
                    {
                        Minions Tottem = new Minions("Tottem", 0, 0, 0, 2, 0, 0);
                        MyField.CardsInField.Add(Tottem);
                    }
                    else if (Class == 3) // Picaro //
                    {
                    }
                    else if (Class == 4) // Paladin //
                    {
                        Minions SilverHandRecruit = new Minions("Silver Hand Recruit", 0, 0, 0, 1, 1, 0);
                        MyField.CardsInField.Add(SilverHandRecruit);
                    }

                    else if (Class == 5) // Hunter //
                    {
                        Enemy.ReceiveDamage(2);
                    }
                    else if (Class == 6) // Druida //
                    {
                        AttackRest    = true;
                        CurrentAttack = CurrentAttack + 1;
                        Armor         = Armor + 1;
                    }
                    else if (Class == 7) // Warlock //
                    {
                        CurrentHealth -= 2;
                        DrawFromDeck();
                    }
                    else if (Class == 8) // Wizard //
                    {
                    }
                    else if (Class == 9) // Priest //
                    {
                        CurrentHealth += 2;
                    }
                    CurrentMana = CurrentMana - 2;
                    PowerRest   = false;
                }
                else
                {
                    //No tienes mana//
                }
            }
            //ya se uso este turno //
        }
コード例 #3
0
 public void MAttack(int dmg, Minions em)
 {
     if (AttackRest)
     {
         Console.WriteLine("Atacaste a " + em.name + " con " + dmg + " de daño");
         em.ReceiveDamage(dmg);
         this.ReceiveDamage(em.Attack);
         AttackRest = false;
     }
     else
     {
         Console.WriteLine("No puedes atacar este turno.");
     }
 }
コード例 #4
0
        public void MAttack(Minions em)
        {
            int dmg = Attack;

            if (AttackRest)
            {
                Console.WriteLine("\n" + name + " atacó a " + em.name + " con " + dmg + " de daño");
                em.ReceiveDamage(dmg);
                this.ReceiveDamage(em.Attack);
                AttackRest = false;
            }
            else
            {
                Console.WriteLine("\n" + name + " no puede atacar este turno.");
            }
        }
コード例 #5
0
        public Cards PlayCard(int select)
        {
            Cards card = this.MyHand[select];

            if (card is Minions)
            {
                Minions pcard = card as Minions;
                MyField.AddCurrentMinions(pcard);
                CurrentMana -= card.GetCost();
                MyHand.RemoveAt(select);
                CardsInHand -= 1;
            }
            else if (card is Spells)
            {
                Spells pcard = card as Spells;
                pcard.Effect(this);
                MyHand.RemoveAt(select);
            }
            return(card);
        }
コード例 #6
0
 public Boolean CardPlayable(int slct)
 {
     if (slct < CardsInHand)
     {
         Cards card = this.MyHand[slct];
         if (card is Minions)
         {
             Minions pcard = card as Minions;
             if (pcard.GetCost() > CurrentMana)
             {
                 return(false);
             }
             else
             {
                 int cm = MyField.GetCurrentMinions();
                 if (cm < 7)
                 {
                     return(true);
                 }
                 else
                 {
                     return(false);
                 }
             }
         }
         else if (card is Spells)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }
コード例 #7
0
 public void AddCurrentMinions(Minions m)
 {
     CardsInField.Add(m);
     CurrentMinions++;
 }