public class OrbitalStation extends BaseIndustry implements FleetEventListener
Industry.AICoreDescriptionMode, Industry.ImprovementDescriptionMode, Industry.IndustryTooltipMode
Modifier and Type | Field and Description |
---|---|
static float |
DEFENSE_BONUS_BASE |
static float |
DEFENSE_BONUS_BATTLESTATION |
static float |
DEFENSE_BONUS_FORTRESS |
static float |
IMPROVE_STABILITY_BONUS |
protected SectorEntityToken |
stationEntity |
protected CampaignFleetAPI |
stationFleet |
protected boolean |
usingExistingStation |
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 |
---|
OrbitalStation() |
Modifier and Type | Method and Description |
---|---|
protected void |
addAlphaCoreDescription(TooltipMakerAPI tooltip,
Industry.AICoreDescriptionMode mode) |
void |
addImproveDesc(TooltipMakerAPI info,
Industry.ImprovementDescriptionMode mode) |
protected void |
addPostDemandSection(TooltipMakerAPI tooltip,
boolean hasDemand,
Industry.IndustryTooltipMode mode) |
MarketCMD.RaidDangerLevel |
adjustCommodityDangerLevel(java.lang.String commodityId,
MarketCMD.RaidDangerLevel level) |
MarketCMD.RaidDangerLevel |
adjustItemDangerLevel(java.lang.String itemId,
java.lang.String data,
MarketCMD.RaidDangerLevel level)
Includes nonecon "commodities" such as AI cores.
|
void |
advance(float amount) |
void |
apply() |
protected void |
applyAlphaCoreModifiers() |
protected void |
applyAlphaCoreSupplyAndDemandModifiers() |
protected void |
applyCRToStation() |
protected void |
applyImproveModifiers() |
protected void |
applyNoAICoreModifiers() |
protected void |
buildingFinished() |
boolean |
canImprove() |
static void |
disrupt(Industry station) |
protected void |
disruptionFinished() |
protected void |
ensureStationEntityIsSetOrCreated() |
protected int |
getBaseStabilityMod() |
protected float |
getCR() |
protected int |
getHumanCommanderLevel() |
protected Pair<java.lang.String,java.lang.Integer> |
getStabilityAffectingDeficit() |
java.lang.String |
getUnavailableReason() |
protected boolean |
hasPostDemandSection(boolean hasDemand,
Industry.IndustryTooltipMode mode) |
boolean |
isAvailableToBuild() |
protected boolean |
isMiltiarized() |
protected void |
matchCommanderToAICore(java.lang.String aiCore) |
protected void |
matchStationAndCommanderToCurrentIndustry() |
void |
notifyBeingRemoved(MarketAPI.MarketInteractionMode mode,
boolean forUpgrade) |
void |
notifyColonyRenamed() |
protected void |
notifyDisrupted() |
protected java.lang.Object |
readResolve() |
protected void |
removeStationEntityAndFleetIfNeeded() |
void |
reportBattleOccurred(CampaignFleetAPI fleet,
CampaignFleetAPI primaryWinner,
BattleAPI battle)
"fleet" will be null if the listener is registered with the ListenerManager, and non-null
if the listener is added directly to a fleet.
|
void |
reportFleetDespawnedToListener(CampaignFleetAPI fleet,
CampaignEventListener.FleetDespawnReason reason,
java.lang.Object param) |
protected void |
spawnStation() |
void |
unapply() |
protected void |
upgradeFinished(Industry previous) |
addAICoreSection, addAICoreSection, addBetaCoreDescription, addGammaCoreDescription, addGroundDefensesImpactSection, addImprovedSection, addInstalledItemsSection, addNonAICoreInstalledItems, addPostDescriptionSection, addPostSupplySection, addPostUpkeepSection, addRightAfterDescriptionSection, addStabilityPostDemandSection, addUnknownCoreDescription, adjustMarineTokensToRaidItem, apply, applyAICoreModifiers, applyAICoreToIncomeAndUpkeep, applyBetaCoreModifiers, applyBetaCoreSupplyAndDemandModifiers, applyDeficitToProduction, applyGammaCoreModifiers, applyGammaCoreSupplyAndDemandModifiers, applyIncomeAndUpkeep, buildNextInQueue, canBeDisrupted, cancelUpgrade, canDowngrade, canImproveToIncreaseProduction, canInstallAICores, canShutDown, canUpgrade, clearUnmodified, clone, createTooltip, demand, demand, demand, demand, doPostSaveRestore, doPreSaveCleanup, downgrade, finishBuildingOrUpgrading, generateCargoForGatheringPoint, getAICoreId, getAllDeficit, getAllDeficit, getAllDemand, getAllSupply, 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, getStabilityPenalty, getSupply, getSupplyBonus, getSupplyBonusFromOther, getTooltipWidth, getUpkeep, getVisibleInstalledItems, init, initWithParams, isAICoreId, isBuilding, isDemandLegal, isDisrupted, isFunctional, isHidden, isImproved, isIndustry, isOther, isStructure, isSupplyLegal, isTooltipExpandable, isUpgrading, modifyStabilityWithBaseMod, reapply, sendBuildOrUpgradeMessage, setAICoreId, setBuildCostOverride, setBuildProgress, setDisrupted, setDisrupted, setHidden, setImproved, setSpecialItem, showShutDown, showWhenUnavailable, startBuilding, startUpgrading, supply, supply, supply, supply, unmodifyStabilityWithBaseMod, updateAICoreToSupplyAndDemandModifiers, updateImprovementSupplyAndDemandModifiers, updateIncomeAndUpkeep, updateSupplyAndDemandModifiers, wantsToUseSpecialItem, writeReplace
public static float DEFENSE_BONUS_BASE
public static float DEFENSE_BONUS_BATTLESTATION
public static float DEFENSE_BONUS_FORTRESS
public static float IMPROVE_STABILITY_BONUS
protected CampaignFleetAPI stationFleet
protected boolean usingExistingStation
protected SectorEntityToken stationEntity
public void unapply()
unapply
in interface Industry
unapply
in class BaseIndustry
protected void applyCRToStation()
protected float getCR()
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
protected java.lang.Object readResolve()
readResolve
in class BaseIndustry
public void advance(float amount)
advance
in interface Industry
advance
in class BaseIndustry
protected void buildingFinished()
buildingFinished
in class BaseIndustry
public void notifyBeingRemoved(MarketAPI.MarketInteractionMode mode, boolean forUpgrade)
notifyBeingRemoved
in interface Industry
notifyBeingRemoved
in class BaseIndustry
protected void upgradeFinished(Industry previous)
upgradeFinished
in class BaseIndustry
protected void removeStationEntityAndFleetIfNeeded()
public void notifyColonyRenamed()
notifyColonyRenamed
in interface Industry
notifyColonyRenamed
in class BaseIndustry
protected void spawnStation()
protected void ensureStationEntityIsSetOrCreated()
protected void matchStationAndCommanderToCurrentIndustry()
protected int getHumanCommanderLevel()
protected void matchCommanderToAICore(java.lang.String aiCore)
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListener
reportBattleOccurred
in interface FleetEventListener
protected void disruptionFinished()
disruptionFinished
in class BaseIndustry
protected void notifyDisrupted()
notifyDisrupted
in class BaseIndustry
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener
in interface FleetEventListener
public static void disrupt(Industry station)
public boolean isAvailableToBuild()
isAvailableToBuild
in interface Industry
isAvailableToBuild
in class BaseIndustry
public java.lang.String getUnavailableReason()
getUnavailableReason
in interface Industry
getUnavailableReason
in class BaseIndustry
protected int getBaseStabilityMod()
getBaseStabilityMod
in class BaseIndustry
protected Pair<java.lang.String,java.lang.Integer> getStabilityAffectingDeficit()
getStabilityAffectingDeficit
in class BaseIndustry
protected void applyAlphaCoreModifiers()
applyAlphaCoreModifiers
in class BaseIndustry
protected void applyNoAICoreModifiers()
applyNoAICoreModifiers
in class BaseIndustry
protected void applyAlphaCoreSupplyAndDemandModifiers()
applyAlphaCoreSupplyAndDemandModifiers
in class BaseIndustry
protected void addAlphaCoreDescription(TooltipMakerAPI tooltip, Industry.AICoreDescriptionMode mode)
addAlphaCoreDescription
in class BaseIndustry
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
protected boolean isMiltiarized()
public MarketCMD.RaidDangerLevel adjustCommodityDangerLevel(java.lang.String commodityId, MarketCMD.RaidDangerLevel level)
adjustCommodityDangerLevel
in interface Industry
adjustCommodityDangerLevel
in class BaseIndustry
public MarketCMD.RaidDangerLevel adjustItemDangerLevel(java.lang.String itemId, java.lang.String data, MarketCMD.RaidDangerLevel level)
Industry
adjustItemDangerLevel
in interface Industry
adjustItemDangerLevel
in class BaseIndustry
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.