예제 #1
0
 /**
  * @param Knack $knack
  * @param RaceCode $raceCode
  * @param SubRaceCode $subRaceCode
  * @param RacesTable $racesTable
  */
 public function __construct(Knack $knack, RaceCode $raceCode, SubRaceCode $subRaceCode, RacesTable $racesTable)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     parent::__construct($knack->getValue() + $racesTable->getSenses($raceCode, $subRaceCode));
 }
 private function sumProperties(Strength $strengthIncrement, Agility $agilityIncrement, Knack $knackIncrement, Will $willIncrement, Intelligence $intelligenceIncrement, Charisma $charismaIncrement)
 {
     return $strengthIncrement->getValue() + $agilityIncrement->getValue() + $knackIncrement->getValue() + $willIncrement->getValue() + $intelligenceIncrement->getValue() + $charismaIncrement->getValue();
 }
 /**
  * @return int 0+
  */
 public function getKnackLossBecauseOfLimit()
 {
     return $this->firstLevelUnlimitedKnack->getValue() - $this->getFirstLevelKnack()->getValue();
 }
예제 #4
0
 /**
  * @param Knack $knack
  */
 public function __construct(Knack $knack)
 {
     /** @noinspection ExceptionsAnnotatingAndHandlingInspection */
     parent::__construct(SumAndRound::flooredHalf($knack->getValue()));
 }