Beispiel #1
0
 /// <summary>
 /// Compares internal data for equality.
 /// </summary>
 /// <param name="b"></param>
 /// <returns></returns>
 public bool Equals(Detonation b)
 {
     if (!WarfareHeader.Equals(this, b))
     {
         return(false);
     }
     if (!velocity.Equals(b.velocity))
     {
         return(false);
     }
     if (!locationInWorldCoordinates.Equals(b.locationInWorldCoordinates))
     {
         return(false);
     }
     if (descriptor != null && !descriptor.Equals(b.descriptor))
     {
         return(false);
     }
     if (!locationInEntityCoordinates.Equals(b.locationInEntityCoordinates))
     {
         return(false);
     }
     if (!detonationResult.Equals(b.detonationResult))
     {
         return(false);
     }
     if (!variableParameters.Equals(b.variableParameters))
     {
         return(false);
     }
     return(true);
 }
Beispiel #2
0
 /// <summary>
 /// Compares internal data for equality.
 /// </summary>
 /// <param name="b"></param>
 /// <returns></returns>
 public bool Equals(Fire b)
 {
     if (!WarfareHeader.Equals(this, b))
     {
         return(false);
     }
     if (fireMissionIndex != b.fireMissionIndex)
     {
         return(false);
     }
     if (!locationInWorldCoordinates.Equals(b.locationInWorldCoordinates))
     {
         return(false);
     }
     if (descriptor != null && !descriptor.Equals(b.descriptor))
     {
         return(false);
     }
     if (!velocity.Equals(b.velocity))
     {
         return(false);
     }
     if (range != b.range)
     {
         return(false);
     }
     return(true);
 }
 /// <summary>
 /// Compares internal data for equality.
 /// </summary>
 /// <param name="b"></param>
 /// <returns></returns>
 public bool Equals(WarfareHeader b)
 {
     if (!Header.Equals(this, b))
     {
         return(false);
     }
     if (!firingEntityID.Equals(b.firingEntityID))
     {
         return(false);
     }
     if (!targetEntityID.Equals(b.targetEntityID))
     {
         return(false);
     }
     if (!munitionID.Equals(b.munitionID))
     {
         return(false);
     }
     if (!eventID.Equals(b.eventID))
     {
         return(false);
     }
     return(true);
 }
 /// <summary>
 /// Compares internal data for equality.
 /// </summary>
 /// <param name="a"></param>
 /// <param name="b"></param>
 /// <returns></returns>
 public static bool Equals(WarfareHeader a, WarfareHeader b)
 {
     return(a.Equals(b));
 }