예제 #1
0
        public override int GetHashCode()
        {
            int hashTribeId   = TribeId.GetHashCode();
            int hashTribeName = TribeName == null ? 0 : TribeName.GetHashCode();

            return(hashTribeId ^ hashTribeName);
        }
예제 #2
0
 public Monster(string name, int age, EmotionalState attitude, TribeName tribe, bool active)
 {
     _name     = name;
     _age      = age;
     _attitude = attitude;
     _tribe    = tribe;
     _active   = active;
 }