Class MissileAutoloader
java.lang.Object
com.fs.starfarer.api.combat.BaseHullMod
com.fs.starfarer.api.impl.hullmods.MissileAutoloader
- All Implemented Interfaces:
HullModEffect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
FieldsFields inherited from class com.fs.starfarer.api.combat.BaseHullMod
spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPostDescriptionSection
(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec) ship may be null, will be for modspecs.void
advanceInCombat
(ShipAPI ship, float amount) Not called while paused.void
applyEffectsBeforeShipCreation
(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) getCapacityData
(ShipAPI ship) static float
getReloadCost
(WeaponAPI w, ShipAPI ship) getSModDescriptionParam
(int index, ShipAPI.HullSize hullSize, ShipAPI ship) getUnapplicableReason
(ShipAPI ship) static boolean
boolean
isApplicableToShip
(ShipAPI ship) boolean
boolean
shouldAddDescriptionToTooltip
(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec) ship may be null, will be for modspecs.Methods inherited from class com.fs.starfarer.api.combat.BaseHullMod
addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, affectsOPCosts, applyEffectsAfterShipCreation, applyEffectsToFighterSpawnedByShip, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getTooltipWidth, hasSModEffect, hasSModEffectSection, init, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, shipHasOtherModInCategory, showInRefitScreenModPickerFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.fs.starfarer.api.combat.HullModEffect
applyEffectsAfterShipAddedToCombatEngine, getRequiredItem
-
Field Details
-
CAPACITY_DATA
-
BASIC_COOLDOWN
public static float BASIC_COOLDOWN -
SMOD_COOLDOWN
public static float SMOD_COOLDOWN -
MA_DATA_KEY
-
-
Constructor Details
-
MissileAutoloader
public MissileAutoloader()
-
-
Method Details
-
applyEffectsBeforeShipCreation
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) - Specified by:
applyEffectsBeforeShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsBeforeShipCreation
in classBaseHullMod
-
advanceInCombat
Description copied from interface:HullModEffect
Not called while paused.- Specified by:
advanceInCombat
in interfaceHullModEffect
- Overrides:
advanceInCombat
in classBaseHullMod
-
getCapacityData
-
isAffected
-
getReloadCost
-
shouldAddDescriptionToTooltip
public boolean shouldAddDescriptionToTooltip(ShipAPI.HullSize hullSize, ShipAPI ship, boolean isForModSpec) Description copied from interface:HullModEffect
ship may be null, will be for modspecs. hullsize will always be CAPITAL_SHIP for modspecs.- Specified by:
shouldAddDescriptionToTooltip
in interfaceHullModEffect
- Overrides:
shouldAddDescriptionToTooltip
in classBaseHullMod
- Returns:
-
addPostDescriptionSection
public void addPostDescriptionSection(TooltipMakerAPI tooltip, ShipAPI.HullSize hullSize, ShipAPI ship, float width, boolean isForModSpec) Description copied from interface:HullModEffect
ship may be null, will be for modspecs. hullsize will always be CAPITAL_SHIP for modspecs.- Specified by:
addPostDescriptionSection
in interfaceHullModEffect
- Overrides:
addPostDescriptionSection
in classBaseHullMod
-
isApplicableToShip
- Specified by:
isApplicableToShip
in interfaceHullModEffect
- Overrides:
isApplicableToShip
in classBaseHullMod
-
getUnapplicableReason
- Specified by:
getUnapplicableReason
in interfaceHullModEffect
- Overrides:
getUnapplicableReason
in classBaseHullMod
-
isSModEffectAPenalty
public boolean isSModEffectAPenalty()- Specified by:
isSModEffectAPenalty
in interfaceHullModEffect
- Overrides:
isSModEffectAPenalty
in classBaseHullMod
-
getSModDescriptionParam
- Specified by:
getSModDescriptionParam
in interfaceHullModEffect
- Overrides:
getSModDescriptionParam
in classBaseHullMod
-