Example #1
0
 /// <summary>
 /// Universal constructor
 /// </summary>
 public MagicCard(string name, string description, HashSet <CardType> types, SubType subType)
     : this(name, description, subType)
 {
     foreach (var type in types)
     {
         Types.Add(type.Copy());
     }
 }
Example #2
0
 protected MagicCard(string name, string description, SubType subType) : base(name, description)
 {
     Types = new HashSet <CardType>();
     if (subType != null)
     {
         SubType = subType.Copy();
     }
 }
Example #3
0
 /// <summary>
 /// Constructor for Creature
 /// </summary>
 public MagicCard(string name, string description, int power, int shield, SubType subType)
     : this(name, description, subType)
 {
     Types.Add(new Creature(power, shield));
 }
Example #4
0
 /// <summary>
 /// Constructor for Land
 /// </summary>
 public MagicCard(string name, string description, char mana, SubType subType)
     : this(name, description, subType)
 {
     Types.Add(new Land(mana));
 }