/** * Person constructor. * * @param Race $race * @param Gender $gender * @param Name $name * @param Exceptionality $exceptionality * @param Memories $memories * @param ProfessionLevels $professionLevels * @param Background $background * @param Skills $personSkills * @param WeightInKg $weightInKgAdjustment * @param HeightInCm $heightInCm * @param Age $age * @param Tables $tables */ public function __construct(Race $race, Gender $gender, Name $name, Exceptionality $exceptionality, Memories $memories, ProfessionLevels $professionLevels, Background $background, Skills $personSkills, WeightInKg $weightInKgAdjustment, HeightInCm $heightInCm, Age $age, Tables $tables) { $this->race = $race; $this->gender = $gender; $this->name = $name; $this->exceptionality = $exceptionality; $this->checkLevelsAgainstExperiences($professionLevels, $memories, $tables->getExperiencesTable()); $this->memories = $memories; $this->professionLevels = $professionLevels; $this->background = $background; $this->weightInKgAdjustment = $weightInKgAdjustment; $this->heightInCm = $heightInCm; $this->age = $age; $this->personSkills = $personSkills; $this->health = new Health(); $this->stamina = new Stamina(); }