本文整理汇总了PHP中Shadowfunc::getKnownPlaces方法的典型用法代码示例。如果您正苦于以下问题:PHP Shadowfunc::getKnownPlaces方法的具体用法?PHP Shadowfunc::getKnownPlaces怎么用?PHP Shadowfunc::getKnownPlaces使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Shadowfunc
的用法示例。
在下文中一共展示了Shadowfunc::getKnownPlaces方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
public static function execute(SR_Player $player, array $args)
{
$bot = Shadowrap::instance($player);
$party = $player->getParty();
$city = false;
if (count($args) >= 1) {
if (is_numeric($args[0])) {
$city = Shadowrun4::getCityByID($args[0]);
} else {
$city = Shadowrun4::getCityByAbbrev($args[0]);
}
} else {
$city = $party->getCityClass();
}
if ($city === false) {
return self::reply($player, 'Error: Cannot get city class for your party!');
}
$cityname = $city->getName();
return self::rply($player, '5007', array($cityname, Shadowfunc::getKnownPlaces($player, $cityname)));
// $bot->reply(sprintf('Known Places in %s: %s.', $cityname, Shadowfunc::getKnownPlaces($player, $cityname)));
return true;
}