/**
  * @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());
 }
示例#2
0
 private function assertTransferFactorOffensiveSkill($factor, $preferredSkill)
 {
     $this->manager->setPreferredSkill($preferredSkill);
     $this->assertEquals($factor, $this->manager->getTransferFactorOffensiveSkill());
 }