public List <Cards> CreateDeck() { 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); List <Cards> FirstList = new List <Cards>(); 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); }
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."); } }
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."); } }
public void PlayCard() { int select = 100; var count = 0; Console.WriteLine("\nSeleccione su carta para jugar"); foreach (var n in MyHand) { if (n is Minions) { Minions a = n as Minions; Console.WriteLine((count + 1) + ".- " + a.GetName() + " cuesta: " + a.GetCost() + " tiene " + a.GetAttack() + " de ataque y " + a.GetCurrentLife() + " de vida."); } else if (n is Spells) { Spells a = n as Spells; Console.WriteLine((count + 1) + ".- " + a.GetName() + " y cuesta " + a.GetCost()); } count += 1; } try { select = Convert.ToInt32(Console.ReadLine()); } catch (Exception) { Console.WriteLine("\nOpción Invalida."); } if (select <= MyHand.Count) { var card = MyHand[select - 1]; if (card == null) { Console.WriteLine("Comando invalido"); } else if (card is Minions) { Minions pcard = card as Minions; Console.WriteLine("\nVas a jugar la carta: " + pcard.GetName()); if (pcard.GetCost() > CurrentMana) { Console.WriteLine("No tienes la mana suficiente."); } else { int cm = MyField.GetCurrentMinions(); if (cm < 7) { MyField.AddCurrentMinions(pcard); CurrentMana -= card.GetCost(); MyHand.RemoveAt(select - 1); CardsInHand -= 1; } else { Console.WriteLine("\nNo puedes agregar mas cartas en el campo"); } } } else if (card is Spells) { Spells pcard = card as Spells; Console.WriteLine("\nVas a jugar la carta: " + pcard.GetName()); pcard.Effect(this); MyHand.RemoveAt(select - 1); } } else { Console.WriteLine("Comando Invalido"); } }
public void AddCurrentMinions(Minions m) { CardsInField.Add(m); CurrentMinions++; }