/** * @param Player $player * * @return float */ private function calculateBaseValue(Player $player) { $skill = $player->getSkillDefense() * $this->manager->getTransferFactorDefensiveSkill() + $player->getSkillOffense() * $this->manager->getTransferFactorOffensiveSkill(); return $skill / ($this->manager->getTransferFactorDefensiveSkill() + $this->manager->getTransferFactorOffensiveSkill()); }
private function assertTransferFactorOffensiveSkill($factor, $preferredSkill) { $this->manager->setPreferredSkill($preferredSkill); $this->assertEquals($factor, $this->manager->getTransferFactorOffensiveSkill()); }