public bool Set(Modes mode, TargetPred tp = null, Target t = null) { if (this.mode == Modes.NONE) { this.mode = mode; targetPred = tp; target = t; return(true); } return(false); }
protected TargetCard(XmlNode xml, Player p) : base(xml, p) { if (xml.Attributes["effect"] != null) { effect = SpellEffects.GetMethod(typeof(Target), xml.Attributes["effect"].Value) as Target; } if (xml.Attributes["pred"] != null) { pred = SpellEffects.GetMethod(typeof(TargetPred), xml.Attributes["pred"].Value) as TargetPred; } }
public bool Set(Modes mode, GameObject placing = null, TargetPred tp = null) { //allows an ouside source to tell it what input mode to go into if (this.mode == Modes.NONE) { this.mode = mode; this.placing = placing; targetPred = tp; return(true); } return(false); }
public TargetCard(string name, int cost, int loyalty, Factions faction, Player owner, Target effect = null, TargetPred pred = null) : base(name, cost, loyalty, faction, owner) { this.effect = effect; this.pred = pred; }