Class DwellerHullmod
java.lang.Object
com.fs.starfarer.api.combat.BaseHullMod
com.fs.starfarer.api.impl.combat.dweller.DwellerHullmod
- All Implemented Interfaces:
HullModEffect
- Direct Known Subclasses:
HumanShipShroudedHullmod
Required for Shrouded Dweller "ships" - spawns combat entities for custom rendering etc.
- Author:
- Alex
-
Field Summary
FieldsFields inherited from class com.fs.starfarer.api.combat.BaseHullMod
spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
void
advanceInCombat
(ShipAPI ship, float amount) Not called while paused.void
Only called once.void
applyEffectsAfterShipCreation
(ShipAPI ship, String id) Effects applied here should NOT affect ship stats as this does not get called from the campaign.void
applyEffectsBeforeShipCreation
(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) protected DwellerShipCreator
getShipCreator
(String hullId) Methods inherited from class com.fs.starfarer.api.combat.BaseHullMod
addPostDescriptionSection, addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, affectsOPCosts, applyEffectsToFighterSpawnedByShip, canBeAddedOrRemovedNow, getBorderColor, getCanNotBeInstalledNowReason, getDescriptionParam, getDescriptionParam, getDisplayCategoryIndex, getDisplaySortOrder, getNameColor, getSModDescriptionParam, getSModDescriptionParam, getTooltipWidth, getUnapplicableReason, hasSModEffect, hasSModEffectSection, init, isApplicableToShip, isBuiltIn, isInPlayerFleet, isInPlayerFleet, isSMod, isSMod, isSModEffectAPenalty, shipHasOtherModInCategory, shouldAddDescriptionToTooltip, 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
getRequiredItem
-
Field Details
-
SHIP_CREATORS
-
INITED_DWELLER_STUFF
-
-
Constructor Details
-
DwellerHullmod
public DwellerHullmod()
-
-
Method Details
-
getShipCreator
-
addStrategyAI
protected boolean addStrategyAI() -
applyEffectsBeforeShipCreation
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) - Specified by:
applyEffectsBeforeShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsBeforeShipCreation
in classBaseHullMod
-
applyEffectsAfterShipCreation
Description copied from interface:HullModEffect
Effects applied here should NOT affect ship stats as this does not get called from the campaign. Apply stat changes in applyEffectsBeforeShipCreation() instead, as that does affect the campaign.- Specified by:
applyEffectsAfterShipCreation
in interfaceHullModEffect
- Overrides:
applyEffectsAfterShipCreation
in classBaseHullMod
-
applyEffectsAfterShipAddedToCombatEngine
Description copied from interface:HullModEffect
Only called once. Not called again if the ship is removed and then added back to the engine. -
advanceInCombat
Description copied from interface:HullModEffect
Not called while paused.- Specified by:
advanceInCombat
in interfaceHullModEffect
- Overrides:
advanceInCombat
in classBaseHullMod
-