本文整理汇总了PHP中Location::AddEntrance方法的典型用法代码示例。如果您正苦于以下问题:PHP Location::AddEntrance方法的具体用法?PHP Location::AddEntrance怎么用?PHP Location::AddEntrance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Location
的用法示例。
在下文中一共展示了Location::AddEntrance方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct(Location $parent)
{
$id = Locations::MakeID('Neutral zone secret room');
parent::__construct($id, new Position(1085, -1990), new Position(1130, -2005), 15, new Position(1115.8734, -2022.8872, 69.0078, 274.9148), $parent, -1, 0, 0);
parent::AddEntrance(-1, 'main', new Position(1120.3972, -2051.2332, 69.0078, 180));
parent::LoadObjectsFromFile('neutralzone_secret.txt');
}
示例2: __construct
public function __construct()
{
$id = Locations::MakeID('Hitman_HQ');
$location0 = Locations::Find(0);
parent::__construct($id, new Position(1950, 170), new Position(1780, 340), 85, new Position(202.142, 1869.3627, 13.1406, 280), $location0, -1, 0, $id);
$this->LoadObjectsFromFile('hitman_hq.txt');
parent::AddEntrance(-1, 'main', new Position(2263.5876, -755.4053, 38.0447, 120.0885));
}
示例3: __construct
public function __construct()
{
LSBank::$id = Locations::MakeID('Los Santos Bank');
$location0 = Locations::Find(0);
parent::__construct(LSBank::$id, new Position(2300, 15), new Position(2340, -25), 40, new Position(2306.1182, -16.238, 26.7496, 281.6266), $location0, -1, 0, LSBank::$id);
parent::AddEntrance(1274, 'main', new Position(1462.21, -1013.2396, 26.8438, 178.2465));
/* ID=1274 Dollar icon ($) */
parent::AddEntrance(1274, 'back', new Position(1426.8937, -966.2885, 37.4297, 349.1802), new Position(2315.2346, -1.3617, 26.7422, 180.4423));
}
示例4: AddHouseEntrance
/**
** AddHouseEntrance
** Adds a new entrance for this location, only for use in
** children classes (instantiated houses).
**
** Parameters:
** - name: Name for this entrance
** - position: Position in Location0 for the entrance
** - start: Set an alternative starting point
**/
protected function AddHouseEntrance($name, Position $position, Position $start = null)
{
if ($this->cheapest) {
parent::AddEntrance(1273, $name, $position, $start);
} else {
parent::AddEntrance(1272, $name, $position, $start);
}
}