Class ShardSpawner
java.lang.Object
com.fs.starfarer.api.combat.BaseHullMod
com.fs.starfarer.api.impl.hullmods.ShardSpawner
- All Implemented Interfaces:
HullModEffect
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static enum
static class
-
Field Summary
FieldsFields inherited from class com.fs.starfarer.api.combat.BaseHullMod
spec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advanceInCombat
(ShipAPI ship, float amount) Not called while paused.void
applyEffectsBeforeShipCreation
(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, String id) protected ShardSpawner.ShardFadeInPlugin
createShipFadeInPlugin
(String variantId, ShipAPI source, float delay, float fadeInTime, float angle) protected EveryFrameCombatPlugin
createShipFadeOutPlugin
(ShipAPI ship, float fadeOutTime, List<ShardSpawner.ShardFadeInPlugin> shards) getSpawnAngles
(int iter) boolean
hasGoodArmor
(ShipAPI other) boolean
hasGoodShields
(ShipAPI other) boolean
isVulnerableToMissileBarrage
(ShipAPI from, ShipAPI other) Methods inherited from class com.fs.starfarer.api.combat.BaseHullMod
addPostDescriptionSection, addRequiredItemSection, addSModEffectSection, addSModSection, advanceInCampaign, affectsOPCosts, applyEffectsAfterShipCreation, 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
applyEffectsAfterShipAddedToCombatEngine, getRequiredItem
-
Field Details
-
JITTER_COLOR
-
DATA_KEY
-
SPAWN_TIME
public static float SPAWN_TIME -
variantData
-
-
Constructor Details
-
ShardSpawner
public ShardSpawner()
-
-
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
-
getSpawnAngles
-
getTypePickerBasedOnLocalConditions
public WeightedRandomPicker<ShardSpawner.ShardType> getTypePickerBasedOnLocalConditions(ShipAPI ship) -
isVulnerableToMissileBarrage
-
hasGoodArmor
-
hasGoodShields
-
createShipFadeOutPlugin
protected EveryFrameCombatPlugin createShipFadeOutPlugin(ShipAPI ship, float fadeOutTime, List<ShardSpawner.ShardFadeInPlugin> shards) -
createShipFadeInPlugin
protected ShardSpawner.ShardFadeInPlugin createShipFadeInPlugin(String variantId, ShipAPI source, float delay, float fadeInTime, float angle)
-