private function onWentTo(SR_Party $party) { $target = $party->getTarget(); $location = $this->getLocation($target); $party->giveKnowledge('places', $target); $party->pushAction(SR_Party::ACTION_OUTSIDE, $target); if ($location->isEnterAllowedParty($party)) { $location->onEnter($party->getLeader()); } }
public function sharesLocation(SR_Party $p) { if (!$this->isAtLocation()) { return false; } return $p->getAction() === $this->getAction() && $p->getTarget() === $this->getTarget(); }