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, isMapTooltipExpandable
protected ExplosionEntityPlugin.ExplosionParams params
protected java.util.List<ExplosionEntityPlugin.ParticleData> particles
protected transient SpriteAPI sprite
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 void init(SectorEntityToken entity, java.lang.Object pluginParams)
init
in interface CustomCampaignEntityPlugin
init
in class BaseCustomEntityPlugin
public void advance(float amount)
advance
in interface CustomCampaignEntityPlugin
advance
in class BaseCustomEntityPlugin
amount
- in seconds. Use SectorAPI.getClock() to figure out how many campaign days that is.public float getRenderRange()
CustomCampaignEntityPlugin
getRenderRange
in interface CustomCampaignEntityPlugin
getRenderRange
in class BaseCustomEntityPlugin
public void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPlugin
render
in interface CustomCampaignEntityPlugin
render
in class BaseCustomEntityPlugin
public void applyDamageToFleets()
public void applyDamageToFleet(CampaignFleetAPI fleet, float damageMult)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.