示例#1
0
 /**
  * @return FatigueBonus
  */
 public function getBonus()
 {
     return $this->fatigueTable->toBonus($this);
 }
 /**
  * @param Endurance $endurance
  * @param FatigueTable $fatigueTable
  */
 public function __construct(Endurance $endurance, FatigueTable $fatigueTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     parent::__construct($fatigueTable->toFatigue(new FatigueBonus($endurance->getValue() + 10, $fatigueTable))->getValue());
 }
 /**
  * @return Fatigue
  */
 public function getFatigue()
 {
     return $this->fatigueTable->toFatigue($this);
 }
 /**
  * @test
  * @expectedException \DrdPlus\Tables\Measurements\Partials\Exceptions\RequestedDataOutOfTableRange
  */
 public function I_can_not_convert_too_high_value_to_bonus()
 {
     $fatigueTable = new FatigueTable($this->woundsTable);
     $fatigueTable->toBonus(new Fatigue(28001, Fatigue::FATIGUE, $fatigueTable));
 }