public ActivatedAbility(Cost cost = null, MagicCardAction toDo = null, bool isManaAbility = false, bool hasTapSymbol = false, bool hasUnTapSymbol = false)
 {
     if (cost != null)
         cost = new Cost();
     this.isManaAbility = isManaAbility;
     this.cost = cost;
     this.toDo = toDo;
     this.hasTapSymbol = hasTapSymbol;
     this.hasUnTapSymbol = hasUnTapSymbol;
 }
Пример #2
0
 public MagicCard(string name, GraphicsDevice GraphicsDevice, MagicCardType type, string[] subtypes, Ability[] abilities, Cost cost, int power, int toughness)
 {
     this.cost = cost;
     this.type = type;
     this.name = name;
     texture = Texture2D.FromStream(GraphicsDevice, File.OpenRead("Cards/" + name + ".jpg"));
     this.subtypes = subtypes;
     this.abilities = abilities;
     this.power = power;
     this.toughness = toughness;
 }