Class PlanetaryShield
java.lang.Object
com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry
com.fs.starfarer.api.impl.campaign.econ.impl.PlanetaryShield
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.fs.starfarer.api.campaign.econ.Industry
Industry.AICoreDescriptionMode, Industry.ImprovementDescriptionMode, Industry.IndustryTooltipMode
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
static float
Fields inherited from class com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry
aiCoreId, BASE_VALUE_TEXT, buildCostOverride, building, buildProgress, buildTime, currTooltipMode, DEFAULT_IMPROVE_SUPPLY_BONUS, demand, DEMAND_REDUCTION, demandReduction, demandReductionFromOther, dKey, hasInstallableItems, hiddenOverride, id, improved, income, market, SIZE_FOR_LARGE_IMAGE, SIZE_FOR_SMALL_IMAGE, spec, special, supply, SUPPLY_BONUS, supplyBonus, supplyBonusFromOther, upgradeId, upkeep, UPKEEP_MULT, wasDisrupted
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAlphaCoreDescription
(TooltipMakerAPI tooltip, Industry.AICoreDescriptionMode mode) void
protected void
addPostDemandSection
(TooltipMakerAPI tooltip, boolean hasDemand, Industry.IndustryTooltipMode mode) void
apply()
protected void
protected void
protected void
protected void
static void
applyVisuals
(PlanetAPI planet) boolean
protected boolean
hasPostDemandSection
(boolean hasDemand, Industry.IndustryTooltipMode mode) boolean
boolean
void
unapply()
static void
unapplyVisuals
(PlanetAPI planet) Methods inherited from class com.fs.starfarer.api.impl.campaign.econ.impl.BaseIndustry
addAICoreSection, addAICoreSection, addBetaCoreDescription, addGammaCoreDescription, addGroundDefensesImpactSection, addImprovedSection, addInstalledItemsSection, addNonAICoreInstalledItems, addPostDescriptionSection, addPostSupplySection, addPostUpkeepSection, addRightAfterDescriptionSection, addStabilityPostDemandSection, addUnknownCoreDescription, adjustCommodityDangerLevel, adjustItemDangerLevel, adjustMarineTokensToRaidItem, advance, apply, applyAICoreModifiers, applyAICoreToIncomeAndUpkeep, applyBetaCoreModifiers, applyBetaCoreSupplyAndDemandModifiers, applyDeficitToProduction, applyGammaCoreModifiers, applyGammaCoreSupplyAndDemandModifiers, applyIncomeAndUpkeep, buildingFinished, buildNextInQueue, canBeDisrupted, cancelUpgrade, canDowngrade, canImproveToIncreaseProduction, canInstallAICores, canShutDown, canUpgrade, clearUnmodified, clone, createTooltip, demand, demand, demand, demand, disruptionFinished, doPostSaveRestore, doPreSaveCleanup, downgrade, finishBuildingOrUpgrading, generateCargoForGatheringPoint, getAICoreId, getAllDeficit, getAllDeficit, getAllDemand, getAllSupply, getBaseStabilityMod, getBaseUpkeep, getBuildCost, getBuildCostOverride, getBuildOrUpgradeDaysText, getBuildOrUpgradeProgress, getBuildOrUpgradeProgressText, getBuildProgress, getBuildTime, getCanNotShutDownReason, getCargoForInteractionMode, getCargoTitleForGatheringPoint, getCommodityEconUnitMult, getCurrentImage, getCurrentName, getDeficitMult, getDeficitText, getDemand, getDemandReduction, getDemandReductionFromOther, getDescriptionOverride, getDisruptedDays, getDisruptedKey, getId, getImproveBonusXP, getImproveDialogTitle, getImprovementsDescForModifiers, getImproveMenuText, getImproveProductionBonus, getImproveSoundId, getImproveStoryPoints, getIncome, getInstallableItems, getMarket, getMaxDeficit, getModId, getModId, getNameForModifier, getPatherInterest, getSizeMult, getSizeMult, getSpec, getSpecialItem, getStabilityAffectingDeficit, getStabilityPenalty, getSupply, getSupplyBonus, getSupplyBonusFromOther, getTooltipWidth, getUpkeep, getVisibleInstalledItems, init, initWithParams, isAICoreId, isBuilding, isDemandLegal, isDisrupted, isFunctional, isHidden, isImproved, isIndustry, isOther, isStructure, isSupplyLegal, isTooltipExpandable, isUpgrading, modifyStabilityWithBaseMod, notifyBeingRemoved, notifyColonyRenamed, notifyDisrupted, readResolve, reapply, sendBuildOrUpgradeMessage, setAICoreId, setBuildCostOverride, setBuildProgress, setDisrupted, setDisrupted, setHidden, setImproved, setMarket, setSpecialItem, showShutDown, startBuilding, startUpgrading, supply, supply, supply, supply, unmodifyStabilityWithBaseMod, updateAICoreToSupplyAndDemandModifiers, updateImprovementSupplyAndDemandModifiers, updateIncomeAndUpkeep, updateSupplyAndDemandModifiers, upgradeFinished, wantsToUseSpecialItem, writeReplace
-
Field Details
-
DEFENSE_BONUS
public static float DEFENSE_BONUS -
ALPHA_CORE_BONUS
public static float ALPHA_CORE_BONUS -
IMPROVE_DEFENSE_BONUS
public static float IMPROVE_DEFENSE_BONUS
-
-
Constructor Details
-
PlanetaryShield
public PlanetaryShield()
-
-
Method Details
-
apply
public void apply() -
applyVisuals
-
unapplyVisuals
-
unapply
public void unapply()- Specified by:
unapply
in interfaceIndustry
- Overrides:
unapply
in classBaseIndustry
-
isAvailableToBuild
public boolean isAvailableToBuild()- Specified by:
isAvailableToBuild
in interfaceIndustry
- Overrides:
isAvailableToBuild
in classBaseIndustry
-
hasPostDemandSection
- Overrides:
hasPostDemandSection
in classBaseIndustry
-
addPostDemandSection
protected void addPostDemandSection(TooltipMakerAPI tooltip, boolean hasDemand, Industry.IndustryTooltipMode mode) - Overrides:
addPostDemandSection
in classBaseIndustry
-
applyAlphaCoreModifiers
protected void applyAlphaCoreModifiers()- Overrides:
applyAlphaCoreModifiers
in classBaseIndustry
-
applyNoAICoreModifiers
protected void applyNoAICoreModifiers()- Overrides:
applyNoAICoreModifiers
in classBaseIndustry
-
applyAlphaCoreSupplyAndDemandModifiers
protected void applyAlphaCoreSupplyAndDemandModifiers()- Overrides:
applyAlphaCoreSupplyAndDemandModifiers
in classBaseIndustry
-
addAlphaCoreDescription
protected void addAlphaCoreDescription(TooltipMakerAPI tooltip, Industry.AICoreDescriptionMode mode) - Overrides:
addAlphaCoreDescription
in classBaseIndustry
-
canImprove
public boolean canImprove()- Specified by:
canImprove
in interfaceIndustry
- Overrides:
canImprove
in classBaseIndustry
-
applyImproveModifiers
protected void applyImproveModifiers()- Overrides:
applyImproveModifiers
in classBaseIndustry
-
addImproveDesc
- Specified by:
addImproveDesc
in interfaceIndustry
- Overrides:
addImproveDesc
in classBaseIndustry
-