public void EncodeEnchant(Card card) { RelevantCards.Add(card); this.actionType = ActionDecisionType.CastEnchantment; }
public void EncodeAttack(Card card) { RelevantCards.Add(card); this.actionType = ActionDecisionType.Attack; }
public static Card makeDummyLands() { Card card = new Card(); card.cardName = "Land"; card.manaType = ManaType.green; card.Type = CardType.Mana; return card; }
public void EncodeSummon(Card card) { RelevantCards.Add(card); this.actionType = ActionDecisionType.Summon; }
public static Card makeDummyCard() { //for debugging purposes we make VERY basic cards int randAtk = Shared.rand.Next(1, 5); int randDef = Shared.rand.Next(1, 5); int randTotalMana = Shared.rand.Next(1, 4); int randColorCost = Shared.rand.Next(1, 3); Card card = new Card(); card.cardName = "dummy card"; card.Type = CardType.Creature; card.manaType = ManaType.green; card.atk = randAtk; card.def = randDef; card.convertedManaCost = randTotalMana; //converted mana cost is the total number of mana card.colorManaCost = randColorCost; //this can be a random number if (card.colorManaCost > card.convertedManaCost) { card.colorlessManaCost = 0; card.convertedManaCost = card.colorManaCost; return card; } card.colorlessManaCost = card.convertedManaCost - card.colorManaCost; //to figure out the colorless mana cost we need to subtract converted mana cost from color cost return card; }