public class ConstructionSwarmSystemScript extends BaseShipSystemScript
| Modifier and Type | Class and Description |
|---|---|
static class |
ConstructionSwarmSystemScript.SwarmConstructableType |
static class |
ConstructionSwarmSystemScript.SwarmConstructableVariant |
static class |
ConstructionSwarmSystemScript.SwarmConstructionData |
ShipSystemStatsScript.State, ShipSystemStatsScript.StatusData| Modifier and Type | Field and Description |
|---|---|
static float |
BASE_CONSTRUCTION_TIME |
static int |
BASE_FRAGMENTS |
static java.util.List<ConstructionSwarmSystemScript.SwarmConstructableVariant> |
CONSTRUCTABLE |
static float |
CONSTRUCTION_SWARM_SPEED_MULT |
static float |
CONSTRUCTION_TIME_DP_MULT |
static float |
CONSTRUCTION_TIME_OVERSEER_EXTRA |
static int |
FAST_CONSTRUCTION_FRIGATES_MAX |
protected int |
fastConstructionLeft |
protected static boolean |
inited |
static int |
MAX_FRAGMENTS |
static float |
MIN_CR |
static float |
MIN_DP |
static int |
MIN_FRAGMENTS |
static float |
NUM_DESTROYERS_AS_FRACTION_OF_FRIGATES |
static float |
NUM_LARGE_AS_FRACTION_OF_DESTROYERS |
protected boolean |
readyToFire |
protected WeightedRandomPicker<WeaponSlotAPI> |
slots |
| Constructor and Description |
|---|
ConstructionSwarmSystemScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MutableShipStatsAPI stats,
java.lang.String id,
ShipSystemStatsScript.State state,
float effectLevel) |
static boolean |
constructionSwarmWillBuild(ShipAPI ship,
java.lang.String tag,
ShipAPI.HullSize size) |
boolean |
enoughCR(ShipSystemAPI system,
ShipAPI ship) |
boolean |
enoughDP(ShipSystemAPI system,
ShipAPI ship) |
boolean |
enoughFragments(ShipSystemAPI system,
ShipAPI ship) |
protected void |
findSlots(ShipAPI ship) |
static int |
getCombatDeployed(CombatFleetManagerAPI manager,
ShipAPI.HullSize size) |
static float |
getCombatWeightDeployed(CombatFleetManagerAPI manager) |
static int |
getFragmentCost(float dp,
ShipAPI.HullSize size) |
java.lang.String |
getInfoText(ShipSystemAPI system,
ShipAPI ship)
If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.
|
static int |
getNumFabricatorsDeployed(CombatFleetManagerAPI manager) |
static int |
getNumHivesDeployed(CombatFleetManagerAPI manager) |
static int |
getNumOverseersDeployed(CombatFleetManagerAPI manager) |
static void |
init()
Can't do this in a static block because the AI script is loaded and references this
and would run the static block which in turns triggers some stuff that makes the game crash on startup.
|
boolean |
isUsable(ShipSystemAPI system,
ShipAPI ship) |
protected void |
launchSwarm(ShipAPI ship) |
ConstructionSwarmSystemScript.SwarmConstructableVariant |
pickVariant(ShipAPI ship) |
getActiveOverride, getDisplayNameOverride, getInOverride, getOutOverride, getRegenOverride, getStatusData, getUsesOverride, unapplypublic static int BASE_FRAGMENTS
public static float CONSTRUCTION_SWARM_SPEED_MULT
public static float BASE_CONSTRUCTION_TIME
public static float CONSTRUCTION_TIME_DP_MULT
public static float CONSTRUCTION_TIME_OVERSEER_EXTRA
public static float NUM_LARGE_AS_FRACTION_OF_DESTROYERS
public static float NUM_DESTROYERS_AS_FRACTION_OF_FRIGATES
public static int FAST_CONSTRUCTION_FRIGATES_MAX
public static float MIN_CR
public static float MIN_DP
public static int MIN_FRAGMENTS
public static int MAX_FRAGMENTS
public static java.util.List<ConstructionSwarmSystemScript.SwarmConstructableVariant> CONSTRUCTABLE
protected static boolean inited
protected WeightedRandomPicker<WeaponSlotAPI> slots
protected boolean readyToFire
protected int fastConstructionLeft
public ConstructionSwarmSystemScript()
public static void init()
public void apply(MutableShipStatsAPI stats, java.lang.String id, ShipSystemStatsScript.State state, float effectLevel)
apply in interface ShipSystemStatsScriptapply in class BaseShipSystemScriptprotected void launchSwarm(ShipAPI ship)
public ConstructionSwarmSystemScript.SwarmConstructableVariant pickVariant(ShipAPI ship)
public static boolean constructionSwarmWillBuild(ShipAPI ship, java.lang.String tag, ShipAPI.HullSize size)
public static int getNumFabricatorsDeployed(CombatFleetManagerAPI manager)
public static int getNumOverseersDeployed(CombatFleetManagerAPI manager)
public static int getNumHivesDeployed(CombatFleetManagerAPI manager)
public static float getCombatWeightDeployed(CombatFleetManagerAPI manager)
public static int getCombatDeployed(CombatFleetManagerAPI manager, ShipAPI.HullSize size)
public static int getFragmentCost(float dp, ShipAPI.HullSize size)
public java.lang.String getInfoText(ShipSystemAPI system, ShipAPI ship)
ShipSystemStatsScriptAdvancedgetInfoText in interface ShipSystemStatsScriptAdvancedgetInfoText in class BaseShipSystemScriptpublic boolean enoughCR(ShipSystemAPI system, ShipAPI ship)
public boolean enoughDP(ShipSystemAPI system, ShipAPI ship)
public boolean enoughFragments(ShipSystemAPI system, ShipAPI ship)
public boolean isUsable(ShipSystemAPI system, ShipAPI ship)
isUsable in interface ShipSystemStatsScriptAdvancedisUsable in class BaseShipSystemScript