public override int GetHashCode() { int hashTribeId = TribeId.GetHashCode(); int hashTribeName = TribeName == null ? 0 : TribeName.GetHashCode(); return(hashTribeId ^ hashTribeName); }
public Monster(string name, int age, EmotionalState attitude, TribeName tribe, bool active) { _name = name; _age = age; _attitude = attitude; _tribe = tribe; _active = active; }