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; }
public AbilityInstance(Ability ability) { this.ability = ability; }