private string GetHeroPowerText(Board.HeroPower hero_power) { string result = "Hero Power: " + Environment.NewLine; result += "\tCard = " + hero_power.card_id + Environment.NewLine; if (hero_power.used) { result += "\t[USED]" + Environment.NewLine; } return(result); }
public override bool Equals(object obj) { HeroPower rhs = obj as HeroPower; if (rhs == null) { return(false); } if (!this.entity_id.Equals(rhs.entity_id)) { return(false); } if (!this.card_id.Equals(rhs.card_id)) { return(false); } if (!this.used.Equals(rhs.used)) { return(false); } return(true); }