コード例 #1
0
ファイル: SR_City.php プロジェクト: sinfocol/gwf3
 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());
     }
 }
コード例 #2
0
ファイル: SR_Party.php プロジェクト: sinfocol/gwf3
 public function sharesLocation(SR_Party $p)
 {
     if (!$this->isAtLocation()) {
         return false;
     }
     return $p->getAction() === $this->getAction() && $p->getTarget() === $this->getTarget();
 }