本文整理汇总了PHP中server::getInitialCityCount方法的典型用法代码示例。如果您正苦于以下问题:PHP server::getInitialCityCount方法的具体用法?PHP server::getInitialCityCount怎么用?PHP server::getInitialCityCount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类server
的用法示例。
在下文中一共展示了server::getInitialCityCount方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
<link rel="shortcut icon" href="/favicon.ico" />
<style type="text/css">
dt {float: left;}
dd {text-align:right; width: 15em;}
</style>
</head>
<body>
<?php
require dirname(__FILE__) . '/include/visible_header.php';
echo '<h3>' . $server->getName() . ' Rules</h3>';
echo '<dl>';
echo ' <dt>Gold players start with</dt>';
echo ' <dd>' . $server->getInitialGold() . '</dd>';
echo ' <dt>Cities players start with</dt>';
echo ' <dd>' . $server->getInitialCityCount() . '</dd>';
echo ' <dt>Cities start with population</dt>';
echo ' <dd>' . $server->getInitialCityPopulation() . '</dd>';
echo ' <dt>Gold needed to build a city</dt>';
echo ' <dd>' . $server->getCityCost() . '</dd>';
echo ' <dt>Maximum city population</dt>';
echo ' <dd>' . $server->getCityPopulationMax() . '</dd>';
echo ' <dt>Hours in game day</dt>';
echo ' <dd>' . $server->getDayLength() / (60 * 60) . '</dd>';
echo ' <dt>Game days per round</dt>';
echo ' <dd>' . $server->getWeekLength() / $server->getDayLength() . '</dd>';
echo '</dl>';
?>
</body>
</html>