コード例 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (CurrentHealth != 0)
            {
                hash ^= CurrentHealth.GetHashCode();
            }
            if (CurrentEnergy != 0)
            {
                hash ^= CurrentEnergy.GetHashCode();
            }
            return(hash);
        }