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


PHP Unit::makeSpellcaster方法代码示例

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


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

示例1: Upgrade

$FlyerCarapaceLevel2 = new Upgrade("Flyer Carapace Level 2", Zerg, array($Lair), array($Spire, $GreaterSpire), 225, 225, 190);
$FlyerCarapaceLevel3 = new Upgrade("Flyer Carapace Level 3", Zerg, array($Hive), array($Spire, $GreaterSpire), 300, 300, 220);
$CentrifugalHooks = new Upgrade("Centrifugal Hooks", Zerg, array($Lair), array($BanelingNest), 150, 150, 110);
$GlialReconstitution = new Upgrade("Glial Reconstitution", Zerg, array($Lair), array($RoachWarren), 100, 100, 110);
$MetabolicBoost = new Upgrade("Metabolic Boost", Zerg, array(), array($SpawningPool), 100, 100, 110);
$PneumatizedCarapace = new Upgrade("Pneumatized Carapace", Zerg, array($Lair), array($Hatchery, $Lair, $Hive), 100, 100, 60);
$GroovedSpines = new Upgrade("Grooved Spines", Zerg, array(), array($HydraliskDen), 150, 150, 80);
$NeuralParasite = new Upgrade("Neural Parasite", Zerg, array(), array($InfestationPit), 150, 150, 110);
$PathogenGlands = new Upgrade("Pathogen Glands", Zerg, array(), array($InfestationPit), 150, 150, 80);
$AdrenalGlands = new Upgrade("Adrenal Glands", Zerg, array($Hive), array($SpawningPool), 200, 200, 130);
$VentralSacs = new Upgrade("Ventral Sacs", Zerg, array($Lair), array($Hatchery, $Lair, $Hive), 200, 200, 130);
$TunnelingClaws = new Upgrade("Tunneling Claws", Zerg, array($Lair), array($RoachWarren), 150, 150, 110);
$ChitinousPlating = new Upgrade("Chitinous Plating", Zerg, array(), array($UltraliskCavern), 150, 150, 110);
$Burrow = new Upgrade("Burrow", Zerg, array($Lair), array($Hatchery, $Lair, $Hive), 100, 100, 100);
/// Spellcasters & Abilities
$Queen->makeSpellcaster(25, 200);
$SpawnLarvae = new Ability("Spawn Larvae", Zerg, null, $Queen, 25, 40);
$CreepTumor = new Ability("Creep Tumor", Zerg, null, $Queen, 25, 15);
$Nexus->makeSpellcaster(0, 100);
$ChronoBoost = new Ability("Chrono Boost", Protoss, null, $Nexus, 25, 20, false);
$OrbitalCommand->makeSpellcaster(50, 100);
$CalldownMULE = new Ability("Calldown: MULE", Terran, null, $OrbitalCommand, 50, 90);
$CalldownExtraSupplies = new Ability("Calldown: Extra Supplies", Terran, null, $OrbitalCommand, 50, 0);
$ScannerSweep = new Ability("Scanner Sweep", Terran, null, $OrbitalCommand, 50, 12);
/// Supply
$CommandCenter->supplyCapacity = 11;
$SupplyDepot->supplyCapacity = 8;
$CalldownExtraSupplies->supplyCapacity = 8;
$Hatchery->supplyCapacity = 2;
$Overlord->supplyCapacity = 8;
$Overseer->supplyCapacity = 8;
开发者ID:iceeyhot,项目名称:sc2calc.org,代码行数:31,代码来源:product.php


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