///<summary> ///Trigger when a card is played. card represents the card being played, player represents the character playing the card. ///</summary> public EventCardPlayed(AbstractCard card, AbstractCharacter player) { this.type = EventType.CARD_PLAYED; this.playedBy = player; this.cardPlayed = card; this.cardAmbient = card.AMBIENCE; this.cardType = card.TYPE; }
public bool suppressEventCalls = false; // should only be true when a card invokes NegotiationManager.Instance.SelectCardsFromList public AbstractCard(string id, Dictionary <string, string> cardStrings, int cost, CardAmbient ambience, CardRarity rarity, CardType type, List <CardTags> tags = null) { this.ID = id; this.NAME = cardStrings["NAME"]; this.DESC = cardStrings["DESC"]; this.IMAGE = (this.ID == "DECKARD_DIPLOMACY") ? "Images/CardsDeckard/theace" : "Images/missing"; this.COST = cost; this.AMBIENCE = ambience; this.RARITY = rarity; this.TYPE = type; if (tags != null) { foreach (CardTags tag in tags) { this.TAGS.Add(tag); } } this.DRAFT_CHARACTER = this.ID.Split('_')[0]; // Automatically derive the drafting char from the card ID since all card IDs follow the schemata CHARACTER_CARDNAME }