public function start() { Logger::info('Starting an encounter with the following beings:'); foreach ($this->involved as $being) { Logger::info(' - %s (Perception: %s, Hitpoints %s)', array($being->getName(), DisplayHelper::displayInt($being->checkSkill(C\Skills::PERCEPTION, TRUE)), DisplayHelper::displayInt($being->getHitpoints()))); } $this->state = Encounter::STATE_ACTIVE; }
public function rollInitiative() { $this->initiative = $this->checkAbility(Constants\Abilities::DEX); Logger::debug('Character %s rolls initiative of %s.', array($this->getName(), DisplayHelper::displayInt($this->initiative))); }