public class MilitaryBase extends BaseIndustry implements RouteManager.RouteFleetSpawner, FleetEventListener
Modifier and Type | Class and Description |
---|---|
static class |
MilitaryBase.PatrolFleetData |
Industry.AICoreDescriptionMode, Industry.ImprovementDescriptionMode, Industry.IndustryTooltipMode
Modifier and Type | Field and Description |
---|---|
static float |
ALPHA_CORE_BONUS |
static float |
DEFENSE_BONUS_COMMAND |
static float |
DEFENSE_BONUS_MILITARY |
static float |
DEFENSE_BONUS_PATROL |
static int |
IMPROVE_NUM_PATROLS_BONUS |
static float |
OFFICER_PROB_MOD_HIGH_COMMAND |
static float |
OFFICER_PROB_MOD_MILITARY_BASE |
static float |
OFFICER_PROB_MOD_PATROL_HQ |
protected float |
returningPatrolValue |
protected IntervalUtil |
tracker |
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 |
---|
MilitaryBase() |
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, disruptionFinished, doPostSaveRestore, doPreSaveCleanup, downgrade, finishBuildingOrUpgrading, generateCargoForGatheringPoint, getAICoreId, getAllDeficit, getAllDeficit, getAllDemand, getAllSupply, getBaseUpkeep, getBuildCost, getBuildCostOverride, getBuildOrUpgradeDaysText, getBuildOrUpgradeProgress, getBuildOrUpgradeProgressText, getBuildProgress, getBuildTime, getCanNotShutDownReason, getCargoForInteractionMode, getCargoTitleForGatheringPoint, getCommodityEconUnitMult, getCurrentName, getDeficitMult, getDeficitText, getDemand, getDemandReduction, getDemandReductionFromOther, getDescriptionOverride, getDisruptedDays, getDisruptedKey, getId, getImproveBonusXP, getImproveDialogTitle, getImprovementsDescForModifiers, getImproveMenuText, getImproveProductionBonus, getImproveSoundId, getImproveStoryPoints, getIncome, getInstallableItems, getMarket, getMaxDeficit, getModId, getModId, getPatherInterest, getSizeMult, getSizeMult, getSpec, getSpecialItem, getStabilityPenalty, getSupply, getSupplyBonus, getSupplyBonusFromOther, getTooltipWidth, getUpkeep, getVisibleInstalledItems, init, initWithParams, isAICoreId, isBuilding, isDisrupted, isFunctional, isHidden, isImproved, isIndustry, isOther, isStructure, isTooltipExpandable, isUpgrading, modifyStabilityWithBaseMod, notifyBeingRemoved, notifyColonyRenamed, notifyDisrupted, readResolve, 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 OFFICER_PROB_MOD_PATROL_HQ
public static float OFFICER_PROB_MOD_MILITARY_BASE
public static float OFFICER_PROB_MOD_HIGH_COMMAND
public static float DEFENSE_BONUS_PATROL
public static float DEFENSE_BONUS_MILITARY
public static float DEFENSE_BONUS_COMMAND
public static int IMPROVE_NUM_PATROLS_BONUS
protected IntervalUtil tracker
protected float returningPatrolValue
public static float ALPHA_CORE_BONUS
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
protected int getBaseStabilityMod()
getBaseStabilityMod
in class BaseIndustry
public java.lang.String getNameForModifier()
getNameForModifier
in interface Industry
getNameForModifier
in class BaseIndustry
protected Pair<java.lang.String,java.lang.Integer> getStabilityAffectingDeficit()
getStabilityAffectingDeficit
in class BaseIndustry
public java.lang.String getCurrentImage()
getCurrentImage
in interface Industry
getCurrentImage
in class BaseIndustry
public boolean isDemandLegal(CommodityOnMarketAPI com)
isDemandLegal
in interface Industry
isDemandLegal
in class BaseIndustry
public boolean isSupplyLegal(CommodityOnMarketAPI com)
isSupplyLegal
in interface Industry
isSupplyLegal
in class BaseIndustry
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 void buildingFinished()
buildingFinished
in class BaseIndustry
protected void upgradeFinished(Industry previous)
upgradeFinished
in class BaseIndustry
public void advance(float amount)
advance
in interface Industry
advance
in class BaseIndustry
public void reportAboutToBeDespawnedByRouteManager(RouteManager.RouteData route)
reportAboutToBeDespawnedByRouteManager
in interface RouteManager.RouteFleetSpawner
public boolean shouldRepeat(RouteManager.RouteData route)
shouldRepeat
in interface RouteManager.RouteFleetSpawner
public int getCount(FleetFactory.PatrolType... types)
public int getMaxPatrols(FleetFactory.PatrolType type)
public java.lang.String getRouteSourceId()
public boolean shouldCancelRouteAfterDelayCheck(RouteManager.RouteData route)
shouldCancelRouteAfterDelayCheck
in interface RouteManager.RouteFleetSpawner
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListener
reportBattleOccurred
in interface FleetEventListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener
in interface FleetEventListener
public static int getPatrolCombatFP(FleetFactory.PatrolType type, java.util.Random random)
public CampaignFleetAPI spawnFleet(RouteManager.RouteData route)
spawnFleet
in interface RouteManager.RouteFleetSpawner
public static CampaignFleetAPI createPatrol(FleetFactory.PatrolType type, java.lang.String factionId, RouteManager.RouteData route, MarketAPI market, Vector2f locInHyper, java.util.Random random)
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
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.