public class ShardSpawner extends BaseHullMod
Modifier and Type | Class and Description |
---|---|
static class |
ShardSpawner.ShardFadeInPlugin |
static class |
ShardSpawner.ShardSpawnerData |
static class |
ShardSpawner.ShardType |
static class |
ShardSpawner.ShardTypeVariants |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_KEY |
static java.awt.Color |
JITTER_COLOR |
static float |
SPAWN_TIME |
static java.util.Map<ShipAPI.HullSize,ShardSpawner.ShardTypeVariants> |
variantData |
spec
Constructor and Description |
---|
ShardSpawner() |
Modifier and Type | Method and Description |
---|---|
void |
advanceInCombat(ShipAPI ship,
float amount)
Not called while paused.
|
void |
applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize,
MutableShipStatsAPI stats,
java.lang.String id) |
protected ShardSpawner.ShardFadeInPlugin |
createShipFadeInPlugin(java.lang.String variantId,
ShipAPI source,
float delay,
float fadeInTime,
float angle) |
protected EveryFrameCombatPlugin |
createShipFadeOutPlugin(ShipAPI ship,
float fadeOutTime,
java.util.List<ShardSpawner.ShardFadeInPlugin> shards) |
WeightedRandomPicker<java.lang.Float> |
getSpawnAngles(int iter) |
WeightedRandomPicker<ShardSpawner.ShardType> |
getTypePickerBasedOnLocalConditions(ShipAPI ship) |
boolean |
hasGoodArmor(ShipAPI other) |
boolean |
hasGoodShields(ShipAPI other) |
boolean |
isVulnerableToMissileBarrage(ShipAPI from,
ShipAPI other) |
addPostDescriptionSection, 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
public static java.awt.Color JITTER_COLOR
public static java.lang.String DATA_KEY
public static float SPAWN_TIME
public static java.util.Map<ShipAPI.HullSize,ShardSpawner.ShardTypeVariants> variantData
public void applyEffectsBeforeShipCreation(ShipAPI.HullSize hullSize, MutableShipStatsAPI stats, java.lang.String id)
applyEffectsBeforeShipCreation
in interface HullModEffect
applyEffectsBeforeShipCreation
in class BaseHullMod
public void advanceInCombat(ShipAPI ship, float amount)
HullModEffect
advanceInCombat
in interface HullModEffect
advanceInCombat
in class BaseHullMod
public WeightedRandomPicker<java.lang.Float> getSpawnAngles(int iter)
public WeightedRandomPicker<ShardSpawner.ShardType> getTypePickerBasedOnLocalConditions(ShipAPI ship)
public boolean isVulnerableToMissileBarrage(ShipAPI from, ShipAPI other)
public boolean hasGoodArmor(ShipAPI other)
public boolean hasGoodShields(ShipAPI other)
protected EveryFrameCombatPlugin createShipFadeOutPlugin(ShipAPI ship, float fadeOutTime, java.util.List<ShardSpawner.ShardFadeInPlugin> shards)
protected ShardSpawner.ShardFadeInPlugin createShipFadeInPlugin(java.lang.String variantId, ShipAPI source, float delay, float fadeInTime, float angle)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.