Example #1
0
        /// <summary>
        /// Checks if two objects are equal.
        /// </summary>
        /// <param name="obj">The object to check against.</param>
        /// <returns>Returns true if they are equal, otherwise false.</returns>
        public override bool Equals(object obj)
        {
            ArbiterKey other = (ArbiterKey)obj;

            return(other.body1.Equals(body1) && other.body2.Equals(body2) ||
                   other.body1.Equals(body2) && other.body2.Equals(body1));
        }
Example #2
0
 internal void Add(ArbiterKey key, Arbiter arbiter)
 {
     keysSortedList.Add(key);
     dictionaryKeys.Add(key, arbiter);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the ArbiterMap class.
 /// </summary>
 public ArbiterMap()
 {
     lookUpKey = new ArbiterKey(null, null);
 }