public class ExplosionEntityPlugin extends BaseCustomEntityPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
ExplosionEntityPlugin.ExplosionFleetDamage |
static class |
ExplosionEntityPlugin.ExplosionParams |
static class |
ExplosionEntityPlugin.ParticleData |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.LinkedHashSet<java.lang.String> |
damagedAlready |
protected float |
maxParticleSize |
protected ExplosionEntityPlugin.ExplosionParams |
params |
protected java.util.List<ExplosionEntityPlugin.ParticleData> |
particles |
protected float |
shockwaveAccel |
protected float |
shockwaveDuration |
protected float |
shockwaveRadius |
protected float |
shockwaveSpeed |
protected float |
shockwaveWidth |
protected SpriteAPI |
sprite |
entity| Constructor and Description |
|---|
ExplosionEntityPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount) |
void |
applyDamageToFleet(CampaignFleetAPI fleet,
float damageMult) |
void |
applyDamageToFleets() |
float |
getRenderRange()
How far away from the viewport the center of this entity can be before it stops being rendered.
|
void |
init(SectorEntityToken entity,
java.lang.Object pluginParams) |
void |
render(CampaignEngineLayers layer,
ViewportAPI viewport)
Should only render for specified layer.
|
appendToCampaignTooltip, createMapTooltip, getMapTooltipWidth, hasCustomMapTooltip, isMapTooltipExpandableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRenderWhenViewportAlphaMultIsZeroprotected ExplosionEntityPlugin.ExplosionParams params
protected java.util.List<ExplosionEntityPlugin.ParticleData> particles
protected float shockwaveRadius
protected float shockwaveWidth
protected float shockwaveSpeed
protected float shockwaveDuration
protected float shockwaveAccel
protected float maxParticleSize
protected java.util.LinkedHashSet<java.lang.String> damagedAlready
public ExplosionEntityPlugin()
public void init(SectorEntityToken entity, java.lang.Object pluginParams)
init in interface CustomCampaignEntityPlugininit in class BaseCustomEntityPluginpublic void advance(float amount)
advance in interface CustomCampaignEntityPluginadvance in class BaseCustomEntityPluginamount - in seconds. Use SectorAPI.getClock() to figure out how many campaign days that is.public float getRenderRange()
CustomCampaignEntityPlugingetRenderRange in interface CustomCampaignEntityPlugingetRenderRange in class BaseCustomEntityPluginpublic void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPluginrender in interface CustomCampaignEntityPluginrender in class BaseCustomEntityPluginpublic void applyDamageToFleets()
public void applyDamageToFleet(CampaignFleetAPI fleet, float damageMult)