/// <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()); } }
protected MagicCard(string name, string description, SubType subType) : base(name, description) { Types = new HashSet <CardType>(); if (subType != null) { SubType = subType.Copy(); } }
/// <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)); }
/// <summary> /// Constructor for Land /// </summary> public MagicCard(string name, string description, char mana, SubType subType) : this(name, description, subType) { Types.Add(new Land(mana)); }