public override bool Equals(object obj) { Coalition other = obj as Coalition; if (other == null) { return(false); } return(Equals(other)); }
public bool Equals(Coalition other) { foreach (var kvp in this) { if (other[kvp.Key] != kvp.Value) { return(false); } } return(true); }
public bool SupplyCenterIsOwnedBy(Territory t, Coalition c) => c.Members.Any(p => SupplyCenterIsOwnedBy(t, p));