public static string GetSetAbbreviation(Enums.CardSet set) { switch (set) { case FP1: return("NAXX"); case PE1: return("GVG"); case EXPERT1: return("Classic"); case MISSIONS: return("Missions"); case CORE: return("Basic"); case INVALID: return("Invalid"); case TEST_TEMPORARY: return("Test"); case DEMO: return("Demo"); case NONE: return("None"); case CHEAT: return("Cheat"); case BLANK: return("Blank"); case DEBUG_SP: return("Debug"); case PROMO: return("Promo"); case CREDITS: return("Credits"); case HERO_SKINS: return("HeroSkins"); case TB: return("TavernBrawl"); case SLUSH: return("Slush"); default: return(set.ToString()); } }
/// <summary> /// Create a simple secret spell card. /// </summary> /// <param name="cardId">The card id.</param> /// <param name="name">The card name.</param> /// <param name="text">The card text.</param> /// <param name="manaCost">The mana cost of the card.</param> /// <param name="cardSet">The set the card belongs to.</param> /// <param name="heroClass">The hero class the card belongs to.</param> /// <param name="rarity">The rarity of the card.</param> /// <returns>A new simple card.</returns> internal static SimpleCard MakeSecretCard( string cardId, string name, string text, int manaCost, Enums.CardSet cardSet, Enums.HeroClass heroClass, Enums.CardRarity rarity) { return(MakeSpellCard(cardId, name, text, manaCost, cardSet, heroClass, rarity, Enums.SpellType.Secret)); }
/// <summary> /// Create a simple permanent minion card. /// </summary> /// <param name="cardId">The card id.</param> /// <param name="name">The card name.</param> /// <param name="text">The card text.</param> /// <param name="manaCost">The mana cost of the card.</param> /// <param name="cardSet">The set the card belongs to.</param> /// <param name="heroClass">The hero class the card belongs to.</param> /// <param name="rarity">The card rarity.</param> /// <returns>A new simple card.</returns> internal static SimpleCard MakePermanentCard( string cardId, string name, string text, int manaCost, Enums.CardSet cardSet, Enums.HeroClass heroClass, Enums.CardRarity rarity) { SimpleCard make = new SimpleCard(cardId, name, text, manaCost, cardSet, Enums.CardType.Minion, heroClass, rarity); make.MinionType = Enums.MinionType.Permanent; return(make); }
/// <summary> /// Create a new simple spell card with a specified spell type. /// </summary> /// <param name="cardId">The card id.</param> /// <param name="name">The card name.</param> /// <param name="text">The card text.</param> /// <param name="manaCost">The mana cost of the card.</param> /// <param name="cardSet">The set the card belongs to.</param> /// <param name="heroClass">The hero class the card belongs to.</param> /// <param name="rarity">The card rarity.</param> /// <param name="spellType">The type of the sepll.</param> /// <returns>A new simple card.</returns> internal static SimpleCard MakeSpellCard( string cardId, string name, string text, int manaCost, Enums.CardSet cardSet, Enums.HeroClass heroClass, Enums.CardRarity rarity, Enums.SpellType spellType) { SimpleCard make = new SimpleCard(cardId, name, text, manaCost, cardSet, Enums.CardType.Spell, heroClass, rarity); make.SpellType = spellType; return(make); }
/// <summary> /// Create a simple weapon card. /// </summary> /// <param name="cardId">The card id.</param> /// <param name="name">The card name.</param> /// <param name="text">The card text.</param> /// <param name="manaCost">The mana cost of the card.</param> /// <param name="cardSet">The set the card belongs to.</param> /// <param name="heroClass">The hero class the card belongs to.</param> /// <param name="rarity">The rarity of the card.</param> /// <param name="attack">The weapon attack.</param> /// <param name="durability">The weapon durability.</param> /// <returns>A new simple card.</returns> internal static SimpleCard MakeWeaponCard( string cardId, string name, string text, int manaCost, Enums.CardSet cardSet, Enums.HeroClass heroClass, Enums.CardRarity rarity, int attack, int durability) { SimpleCard make = new SimpleCard(cardId, name, text, manaCost, cardSet, Enums.CardType.Weapon, heroClass, rarity); make.Attack = attack; make.HealthDurability = durability; return(make); }
/// <summary> /// Create a simple minion card with a specified minion tribe. /// </summary> /// <param name="cardId">The card id.</param> /// <param name="name">The card name.</param> /// <param name="text">The card text.</param> /// <param name="manaCost">The mana cost of the card.</param> /// <param name="cardSet">The set the card belongs to.</param> /// <param name="heroClass">The hero class the card belongs to.</param> /// <param name="rarity">The card rarity.</param> /// <param name="attack">The minion attack.</param> /// <param name="health">The minion health.</param> /// <param name="minionTribe">The minion tribe the card belongs to.</param> /// <returns>A new simple card.</returns> internal static SimpleCard MakeMinionCard( string cardId, string name, string text, int manaCost, Enums.CardSet cardSet, Enums.HeroClass heroClass, Enums.CardRarity rarity, int attack, int health, Enums.MinionTribe minionTribe) { SimpleCard make = MakeMinionCard(cardId, name, text, manaCost, cardSet, heroClass, rarity, attack, health); make.MinionTribe = minionTribe; return(make); }
/// <summary> /// Create a new simple card. /// </summary> /// <param name="cardId">The card id.</param> /// <param name="name">The card name.</param> /// <param name="text">The card text.</param> /// <param name="manaCost">The mana cost of the card.</param> /// <param name="cardSet">The set the card belongs to.</param> /// <param name="cardType">The type of the card.</param> /// <param name="heroClass">The hero class the card belongs to.</param> /// <param name="rarity">The card rarity.</param> protected SimpleCard( string cardId, string name, string text, int manaCost, Enums.CardSet cardSet, Enums.CardType cardType, Enums.HeroClass heroClass, Enums.CardRarity rarity) { CardId = cardId; Name = name; Text = text; ManaCost = manaCost; CardSet = cardSet; CardType = cardType; HeroClass = heroClass; Rarity = rarity; }