当前位置: 首页>>代码示例>>PHP>>正文


PHP Location::AddEntrance方法代码示例

本文整理汇总了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');
 }
开发者ID:ryden,项目名称:ItalyMafia-3.0,代码行数:7,代码来源:neutralzone.php

示例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));
 }
开发者ID:ryden,项目名称:ItalyMafia-3.0,代码行数:8,代码来源:hitman_hq.php

示例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));
 }
开发者ID:ryden,项目名称:ItalyMafia-3.0,代码行数:9,代码来源:bank.php

示例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);
     }
 }
开发者ID:ryden,项目名称:ItalyMafia-3.0,代码行数:18,代码来源:house.php


注:本文中的Location::AddEntrance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。