本文整理匯總了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;