/// <summary> /// Returns a hash code for this instance. /// </summary> /// <returns> /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. /// </returns> public override int GetHashCode() { unchecked { int result = Initiative.GetHashCode(); result = (result * 397) ^ SoftAttack.GetHashCode(); result = (result * 397) ^ HardAttack.GetHashCode(); result = (result * 397) ^ AirAttack.GetHashCode(); result = (result * 397) ^ NavalAttack.GetHashCode(); result = (result * 397) ^ GroundDefense.GetHashCode(); result = (result * 397) ^ AirDefense.GetHashCode(); result = (result * 397) ^ CloseDefense.GetHashCode(); result = (result * 397) ^ Range.GetHashCode(); result = (result * 397) ^ Movement.GetHashCode(); result = (result * 397) ^ Spotting.GetHashCode(); return(result); } }