예제 #1
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 31 + Player;
            hash = hash * 31 + CityOfResearchStation;
            hash = hash * 31 + TypeOfDiseaseToCure;
            hash = hash * 31 + CityCardsToDiscard.Custom_HashCode();

            return(hash);
        }
예제 #2
0
        public bool Equals(PA_DiscoverCure_Scientist other)
        {
            if (this.Player != other.Player)
            {
                return(false);
            }
            else if (this.CityOfResearchStation != other.CityOfResearchStation)
            {
                return(false);
            }
            else if (this.TypeOfDiseaseToCure != other.TypeOfDiseaseToCure)
            {
                return(false);
            }
            else if (CityCardsToDiscard.List_Equals(other.CityCardsToDiscard) == false)
            {
                return(false);
            }

            return(true);
        }