本文整理汇总了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());
示例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());
}