Exemplo n.º 1
0
        public override bool Equals(object obj)
        {
            Coalition other = obj as Coalition;

            if (other == null)
            {
                return(false);
            }
            return(Equals(other));
        }
Exemplo n.º 2
0
 public bool Equals(Coalition other)
 {
     foreach (var kvp in this)
     {
         if (other[kvp.Key] != kvp.Value)
         {
             return(false);
         }
     }
     return(true);
 }
Exemplo n.º 3
0
 public bool SupplyCenterIsOwnedBy(Territory t, Coalition c) => c.Members.Any(p => SupplyCenterIsOwnedBy(t, p));