public static void AddUniversalCharacteristics(Card c) { CardCharacteristics Front, Back, FaceDown, Morph, Manifest; Front = new CardCharacteristics(); Back = new CardCharacteristics(); FaceDown = new CardCharacteristics(); Morph = new CardCharacteristics(); Manifest = new CardCharacteristics(); Morph.CardTypes.Add("Creature"); Morph.Power = 2; Morph.Toughness = 2; Manifest.CardTypes.Add("Creature"); Manifest.Power = 2; Manifest.Toughness = 2; FaceDown.Name = "Face down card"; c.MyCharacteristics.Add(CharacteristicName.Front, Front); c.MyCharacteristics.Add(CharacteristicName.Back, Back); c.MyCharacteristics.Add(CharacteristicName.FaceDown, FaceDown); c.MyCharacteristics.Add(CharacteristicName.Morph, Morph); c.MyCharacteristics.Add(CharacteristicName.Manifest, Manifest); }
public object Clone() { CardCharacteristics ret = new CardCharacteristics(); ret.Name = this.Name; foreach (String s in this.CardTypes) { ret.CardTypes.Add(s); } foreach (String s in this.SubTypes) { ret.SubTypes.Add(s); } foreach (String s in this.SuperTypes) { ret.SuperTypes.Add(s); } ret.Power = this.Power; ret.Toughness = this.Toughness; foreach (Activatable act in Activatables) { ret.Activatables.Add((Activatable)act.Clone()); } foreach (ContinuousEffect ce in ContinuousEffects) { ret.ContinuousEffects.Add((ContinuousEffect)ce.Clone()); } return(ret); }