Ejemplo n.º 1
0
 public Land(string name, CardType type = CardType.Land, Color color        = Color.Colorless, Color identity = Color.Colorless, Color produces = Color.Colorless,
             Supertype supertype        = Supertype.None, string[] subtypes = null, string artist             = "", string number = "", string text      = "", string set = "",
             Rarity rarity = Rarity.Common, Keyword[] keywords              = null, int multiverseId = 0, string imageUrl         = "", Ruling[] rulings = null)
     : base(name, type | CardType.Land, "{0}", color, identity, supertype, subtypes, artist, number, text, set, rarity, keywords, multiverseId, imageUrl, rulings)
 {
     Produces = produces;
 }
Ejemplo n.º 2
0
 //You don't need to specify card type creature
 public Creature(string name, int power, int toughness, string cost = "{0}", CardType type = CardType.Creature, Color color = Color.Colorless, Color identity = Color.Colorless,
                 Supertype supertype = Supertype.None, string[] subtypes = null, string artist = "", string number      = "", string text    = "",
                 string set          = "", Rarity rarity = Rarity.Common, Keyword[] keywords   = null, int multiverseId = 0, string imageUrl = "", Ruling[] rulings = null,
                 bool tapped         = false, List <Counter> counters = null)
     : base(name, type | CardType.Creature, cost, color, identity, supertype, subtypes, artist, number, text, set, rarity, keywords, multiverseId, imageUrl, rulings)
 {
     Power     = power;
     Toughness = toughness;
 }
Ejemplo n.º 3
0
        //the following types are available but not implemented
        //id, variations, watermark, border, timeshifted (implemented as a rarity), hand (for vanguard), reserved, releaseDate (for promos), starter
        //foreignNames, printings, originalText, originalType, legalities, source

        public Card(string name, CardType type, string cost = "{0}", Color color = Color.Colorless, Color identity = Color.Colorless, Supertype supertype = Supertype.None,
                    string[] subtypes  = null, string artist    = "", string number  = "", string text      = "", string set = "", Rarity rarity = Rarity.Common,
                    Keyword[] keywords = null, int multiverseId = 0, string imageUrl = "", Ruling[] rulings = null)
        {
            Name         = name;
            Cost         = new ManaCost(cost);
            CardType     = type;
            Color        = color;
            Identity     = identity;
            Supertype    = supertype;
            Subtypes     = subtypes ?? new string[0];
            Artist       = artist;
            Number       = number;
            Text         = text;
            Set          = set;
            Rarity       = rarity;
            Keywords     = keywords ?? new Keyword[0];
            MultiverseID = multiverseId;
            ImageUrl     = imageUrl;
            Rulings      = rulings ?? new Ruling[0];
        }
Ejemplo n.º 4
0
 public Permanent(string name, CardType type, string cost = "{0}", Color color = Color.Colorless, Color identity = Color.Colorless, Supertype supertype = Supertype.None,
                  string[] subtypes  = null, string artist    = "", string number  = "", string text      = "", string set = "", Rarity rarity = Rarity.Common,
                  Keyword[] keywords = null, int multiverseId = 0, string imageUrl = "", Ruling[] rulings = null, bool tapped = false, List <Counter> counters = null)
     : base(name, type | CardType.Permanent, cost, color, identity, supertype, subtypes, artist, number, text, set, rarity, keywords, multiverseId, imageUrl, rulings)
 {
     Counters = counters ?? new List <Counter>();
 }