public class TurbulenceEntityPlugin extends BaseCustomEntityPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
TurbulenceEntityPlugin.ParticleData |
static class |
TurbulenceEntityPlugin.PointParticle |
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<TurbulenceEntityPlugin.ParticleData> |
darkParticles |
protected float |
distanceTravelled |
protected VelocityField |
field |
protected int |
frame |
protected java.util.List<TurbulenceEntityPlugin.ParticleData> |
particles |
protected java.util.List<TurbulenceEntityPlugin.PointParticle> |
testParticles |
entity| Constructor and Description |
|---|
TurbulenceEntityPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestParticle(org.lwjgl.util.vector.Vector2f loc,
java.awt.Color color,
float size,
float mass,
float dur) |
void |
addTexturedParticle(org.lwjgl.util.vector.Vector2f loc,
java.awt.Color color,
float mass,
float size,
float endSizeMult,
float durIn,
float durOut) |
void |
advance(float amount) |
VelocityField |
getField() |
java.awt.Color |
getRandomColor() |
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.
|
void |
renderTextureParticles(CampaignEngineLayers layer,
ViewportAPI viewport) |
void |
setField(VelocityField field) |
appendToCampaignTooltip, createMapTooltip, getMapTooltipWidth, hasCustomMapTooltip, isMapTooltipExpandableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRenderWhenViewportAlphaMultIsZeroprotected java.util.List<TurbulenceEntityPlugin.ParticleData> particles
protected java.util.List<TurbulenceEntityPlugin.ParticleData> darkParticles
protected VelocityField field
protected java.util.List<TurbulenceEntityPlugin.PointParticle> testParticles
protected int frame
protected float distanceTravelled
public TurbulenceEntityPlugin()
public VelocityField getField()
public void setField(VelocityField field)
public void init(SectorEntityToken entity, java.lang.Object pluginParams)
init in interface CustomCampaignEntityPlugininit in class BaseCustomEntityPluginpublic float getRenderRange()
CustomCampaignEntityPlugingetRenderRange in interface CustomCampaignEntityPlugingetRenderRange 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 void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPluginrender in interface CustomCampaignEntityPluginrender in class BaseCustomEntityPluginpublic void renderTextureParticles(CampaignEngineLayers layer, ViewportAPI viewport)
public void addTestParticle(org.lwjgl.util.vector.Vector2f loc, java.awt.Color color, float size, float mass, float dur)
public void addTexturedParticle(org.lwjgl.util.vector.Vector2f loc, java.awt.Color color, float mass, float size, float endSizeMult, float durIn, float durOut)
public java.awt.Color getRandomColor()