protected Fighter(string type, double h, double d, double dex) { count++; ID = Level.GetHashCode() + Dexterity.GetHashCode() + HP.GetHashCode() + Damage.GetHashCode(); this.type = type; HP = Convert.ToInt32(400 * h); Damage = Convert.ToInt32(10 * d); Dexterity = Convert.ToInt32(20 * dex); Level = 1; }
public override int GetHashCode() { return(Level.GetHashCode() + Dexterity.GetHashCode() + HP.GetHashCode() + Damage.GetHashCode()); }