public override int GetHashCode() { unchecked { var hashCode = BlueFighter.GetHashCode(); hashCode = (hashCode * 397) ^ RedFighter.GetHashCode(); hashCode = (hashCode * 397) ^ Round; hashCode = (hashCode * 397) ^ Id; return(hashCode); } }
public void SetPoints(FightPoint points) { if (points.FighterId == RedFighter.Id) { RedFighter.SetPoints(points); } else { BlueFighter.SetPoints(points); } }
protected bool Equals(FightState other) { return(BlueFighter.Equals(other.BlueFighter) && RedFighter.Equals(other.RedFighter) && Round == other.Round && Id == other.Id); }