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


PHP Map::addMap方法代码示例

本文整理汇总了PHP中Map::addMap方法的典型用法代码示例。如果您正苦于以下问题:PHP Map::addMap方法的具体用法?PHP Map::addMap怎么用?PHP Map::addMap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Map的用法示例。


在下文中一共展示了Map::addMap方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

$lweak->addMember($autoreport->getId());
$fflood->addMember($blast->getId());
$fradis->addMember($alezakos->getId());
$reptitles->addMember($brad->getId());
$fradis->addMember($themap->getId());
echo " done!";
echo "\nAdding maps...";
$six = Map::addMap("Six", "six", "six is the best map ever");
$monocati = Map::addMap("Monocati", "monocati", "a single map");
$toast = Map::addMap("Toast", null, <<<TOAST
Toast is a very old map with **deterministic** outcome. A *true* map for *true* masters.

#### Choice
Toast has been the **map of choice** for many of the league's players and teams, including
but not limited to LakeWeakness, Fractious Disinclination and Former Gratification. The map
has been providing inspiration and will be providing inspiration for years to come, sparking
interesting matches, clever matching techniques, and even spin-offs of a similar style.
However, match goers have remained attached to toast's simple yet powerful layout, taking
advantage of all the improbable possibilities, bringing enjoyment to all kinds of BZFlag
players around the globe.
TOAST
);
echo "\nAdding matches...";
Match::enterMatch($reptitles->getId(), $gsepar->getId(), 1, 9000, 17, $kierra->getId(), "now", [], [], null, null, null, $six->getId());
Match::enterMatch($olfm->getId(), $lweak->getId(), 0, 0, 20, $blast->getId(), "now", [], [], null, null, null, $toast->getId());
Match::enterMatch($fflood->getId(), $lweak->getId(), 1, 15, 20, $autoreport->getId(), "now", [], [], null, null, null, $six->getId());
Match::enterMatch($gsepar->getId(), $fradis->getId(), 8, 23, 30, $kierra->getId(), "now", [], [], null, null, null, $toast->getId());
Match::enterMatch($olfm->getId(), $lweak->getId(), 5, 4, 20, $kierra->getId());
Match::enterMatch($reptitles->getId(), $gsepar->getId(), 1, 1500, 20, $autoreport->getId(), "now", [], [], null, null, null, $monocati->getId());
Match::enterMatch($olfm->getId(), $lweak->getId(), 1, 1, 30, $autoreport->getId(), "now", [], [], null, null, null, $monocati->getId());
Match::enterMatch($fradis->getId(), $gsepar->getId(), 1, 2, 20, $kierra->getId(), "now", [], [], null, null, null, $monocati->getId());
开发者ID:allejo,项目名称:bzion,代码行数:31,代码来源:sampleData.php

示例2: enter

 /**
  * {@inheritdoc}
  */
 public function enter($form)
 {
     return \Map::addMap($form->get('name')->getData(), $form->get('alias')->getData(), $form->get('description')->getData())->setAvatarFile($form->get('avatar')->getData());
 }
开发者ID:blast007,项目名称:bzion,代码行数:7,代码来源:MapFormCreator.php


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