public class PopulationAndInfrastructure extends BaseIndustry implements MarketImmigrationModifier
Modifier and Type | Class and Description |
---|---|
static class |
PopulationAndInfrastructure.CoronalTapFactor |
protected static class |
PopulationAndInfrastructure.LampRemover |
Industry.AICoreDescriptionMode, Industry.ImprovementDescriptionMode, Industry.IndustryTooltipMode
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
addedHeatCondition |
static float |
ADMIN_BASE_PROB |
static float |
ADMIN_PROB_PER_SIZE |
static boolean |
HAZARD_INCREASES_DEFENSE |
static float |
IMPROVE_STABILITY_BONUS |
protected SectorEntityToken |
lamp |
static int[] |
MAX_IND |
static float |
OFFICER_ADDITIONAL_BASE_PROB |
static float |
OFFICER_BASE_MERC_PROB |
static float |
OFFICER_BASE_PROB |
static float |
OFFICER_PROB_PER_SIZE |
protected java.lang.String |
removedHeatCondition |
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 and Description |
---|
PopulationAndInfrastructure() |
Modifier and Type | Method and Description |
---|---|
void |
addImproveDesc(TooltipMakerAPI info,
Industry.ImprovementDescriptionMode mode) |
protected void |
addPostDemandSection(TooltipMakerAPI tooltip,
boolean hasDemand,
Industry.IndustryTooltipMode mode) |
void |
apply() |
protected void |
applyImproveModifiers() |
boolean |
canBeDisrupted() |
boolean |
canImprove() |
boolean |
canShutDown() |
static float |
getAccessibilityBonus(int marketSize) |
static float |
getBaseGroundDefenses(int marketSize) |
float |
getBuildOrUpgradeProgress() |
java.lang.String |
getBuildOrUpgradeProgressText() |
java.lang.String |
getCanNotShutDownReason() |
java.lang.String |
getCurrentImage() |
protected java.lang.String |
getDescriptionOverride() |
static float |
getIncomeStabilityMult(float stability) |
int |
getMaxIndustries() |
static int |
getMaxIndustries(int size) |
static int |
getMismanagementPenalty() |
static Pair<SectorEntityToken,java.lang.Float> |
getNearestCoronalTap(Vector2f locInHyper,
boolean usable) |
static float |
getUpkeepHazardMult(float hazard) |
protected boolean |
hasPostDemandSection(boolean hasDemand,
Industry.IndustryTooltipMode mode) |
boolean |
isBuilding()
Building OR upgrading.
|
boolean |
isUpgrading()
Upgrading, but not the initial building process.
|
void |
modifyIncoming(MarketAPI market,
PopulationComposition incoming) |
static void |
modifyStability(Industry industry,
MarketAPI market,
java.lang.String modId) |
static void |
modifyStability2(Industry industry,
MarketAPI market,
java.lang.String modId) |
static void |
modifyUpkeepByHazardRating(MarketAPI market,
java.lang.String modId)
Called from core code after all industry effects are applied.
|
void |
setSpecialItem(SpecialItemData special) |
boolean |
showShutDown() |
void |
unapply() |
static void |
unmodifyStability(MarketAPI market,
java.lang.String modId) |
boolean |
wantsToUseSpecialItem(SpecialItemData data)
Return false if already using one of that type, unless the other one is better.
|
addAICoreSection, addAICoreSection, addAlphaCoreDescription, addBetaCoreDescription, addGammaCoreDescription, addGroundDefensesImpactSection, addImprovedSection, addInstalledItemsSection, addNonAICoreInstalledItems, addPostDescriptionSection, addPostSupplySection, addPostUpkeepSection, addRightAfterDescriptionSection, addStabilityPostDemandSection, addUnknownCoreDescription, adjustCommodityDangerLevel, adjustItemDangerLevel, adjustMarineTokensToRaidItem, advance, apply, applyAICoreModifiers, applyAICoreToIncomeAndUpkeep, applyAlphaCoreModifiers, applyAlphaCoreSupplyAndDemandModifiers, applyBetaCoreModifiers, applyBetaCoreSupplyAndDemandModifiers, applyDeficitToProduction, applyGammaCoreModifiers, applyGammaCoreSupplyAndDemandModifiers, applyIncomeAndUpkeep, applyNoAICoreModifiers, buildingFinished, buildNextInQueue, cancelUpgrade, canDowngrade, canImproveToIncreaseProduction, canInstallAICores, canUpgrade, clearUnmodified, clone, createTooltip, demand, demand, demand, demand, disruptionFinished, doPostSaveRestore, doPreSaveCleanup, downgrade, finishBuildingOrUpgrading, generateCargoForGatheringPoint, getAICoreId, getAllDeficit, getAllDeficit, getAllDemand, getAllSupply, getBaseStabilityMod, getBaseUpkeep, getBuildCost, getBuildCostOverride, getBuildOrUpgradeDaysText, getBuildProgress, getBuildTime, getCargoForInteractionMode, getCargoTitleForGatheringPoint, getCommodityEconUnitMult, getCurrentName, getDeficitMult, getDeficitText, getDemand, getDemandReduction, getDemandReductionFromOther, 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, getUnavailableReason, getUpkeep, getVisibleInstalledItems, init, initWithParams, isAICoreId, isAvailableToBuild, isDemandLegal, isDisrupted, isFunctional, isHidden, isImproved, isIndustry, isOther, isStructure, isSupplyLegal, isTooltipExpandable, modifyStabilityWithBaseMod, notifyBeingRemoved, notifyColonyRenamed, notifyDisrupted, readResolve, reapply, sendBuildOrUpgradeMessage, setAICoreId, setBuildCostOverride, setBuildProgress, setDisrupted, setDisrupted, setHidden, setImproved, showWhenUnavailable, startBuilding, startUpgrading, supply, supply, supply, supply, unmodifyStabilityWithBaseMod, updateAICoreToSupplyAndDemandModifiers, updateImprovementSupplyAndDemandModifiers, updateIncomeAndUpkeep, updateSupplyAndDemandModifiers, upgradeFinished, writeReplace
public static float OFFICER_BASE_PROB
public static float OFFICER_PROB_PER_SIZE
public static float OFFICER_ADDITIONAL_BASE_PROB
public static float OFFICER_BASE_MERC_PROB
public static float ADMIN_BASE_PROB
public static float ADMIN_PROB_PER_SIZE
public static float IMPROVE_STABILITY_BONUS
public static boolean HAZARD_INCREASES_DEFENSE
public static int[] MAX_IND
protected java.lang.String addedHeatCondition
protected java.lang.String removedHeatCondition
protected SectorEntityToken lamp
public static float getAccessibilityBonus(int marketSize)
public static float getBaseGroundDefenses(int marketSize)
public void unapply()
unapply
in interface Industry
unapply
in class BaseIndustry
protected boolean hasPostDemandSection(boolean hasDemand, Industry.IndustryTooltipMode mode)
hasPostDemandSection
in class BaseIndustry
protected void addPostDemandSection(TooltipMakerAPI tooltip, boolean hasDemand, Industry.IndustryTooltipMode mode)
addPostDemandSection
in class BaseIndustry
public java.lang.String getCurrentImage()
getCurrentImage
in interface Industry
getCurrentImage
in class BaseIndustry
public static float getIncomeStabilityMult(float stability)
public static float getUpkeepHazardMult(float hazard)
public static int getMismanagementPenalty()
public static void modifyStability2(Industry industry, MarketAPI market, java.lang.String modId)
public static void modifyUpkeepByHazardRating(MarketAPI market, java.lang.String modId)
industry
- market
- modId
- public static void modifyStability(Industry industry, MarketAPI market, java.lang.String modId)
public static void unmodifyStability(MarketAPI market, java.lang.String modId)
public boolean showShutDown()
showShutDown
in interface Industry
showShutDown
in class BaseIndustry
public java.lang.String getCanNotShutDownReason()
getCanNotShutDownReason
in interface Industry
getCanNotShutDownReason
in class BaseIndustry
public boolean canShutDown()
canShutDown
in interface Industry
canShutDown
in class BaseIndustry
protected java.lang.String getDescriptionOverride()
getDescriptionOverride
in class BaseIndustry
public java.lang.String getBuildOrUpgradeProgressText()
getBuildOrUpgradeProgressText
in interface Industry
getBuildOrUpgradeProgressText
in class BaseIndustry
public float getBuildOrUpgradeProgress()
getBuildOrUpgradeProgress
in interface Industry
getBuildOrUpgradeProgress
in class BaseIndustry
public boolean isBuilding()
Industry
isBuilding
in interface Industry
isBuilding
in class BaseIndustry
public boolean isUpgrading()
Industry
isUpgrading
in interface Industry
isUpgrading
in class BaseIndustry
public void modifyIncoming(MarketAPI market, PopulationComposition incoming)
modifyIncoming
in interface MarketImmigrationModifier
public boolean canBeDisrupted()
canBeDisrupted
in interface Industry
canBeDisrupted
in class BaseIndustry
public int getMaxIndustries()
public static int getMaxIndustries(int size)
public boolean canImprove()
canImprove
in interface Industry
canImprove
in class BaseIndustry
protected void applyImproveModifiers()
applyImproveModifiers
in class BaseIndustry
public void addImproveDesc(TooltipMakerAPI info, Industry.ImprovementDescriptionMode mode)
addImproveDesc
in interface Industry
addImproveDesc
in class BaseIndustry
public void setSpecialItem(SpecialItemData special)
setSpecialItem
in interface Industry
setSpecialItem
in class BaseIndustry
public boolean wantsToUseSpecialItem(SpecialItemData data)
Industry
wantsToUseSpecialItem
in interface Industry
wantsToUseSpecialItem
in class BaseIndustry
public static Pair<SectorEntityToken,java.lang.Float> getNearestCoronalTap(Vector2f locInHyper, boolean usable)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.