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(Vector2f loc,
java.awt.Color color,
float size,
float mass,
float dur) |
void |
addTexturedParticle(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, isMapTooltipExpandable
protected 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 VelocityField getField()
public void setField(VelocityField field)
public void init(SectorEntityToken entity, java.lang.Object pluginParams)
init
in interface CustomCampaignEntityPlugin
init
in class BaseCustomEntityPlugin
public float getRenderRange()
CustomCampaignEntityPlugin
getRenderRange
in interface CustomCampaignEntityPlugin
getRenderRange
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 void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPlugin
render
in interface CustomCampaignEntityPlugin
render
in class BaseCustomEntityPlugin
public void renderTextureParticles(CampaignEngineLayers layer, ViewportAPI viewport)
public void addTestParticle(Vector2f loc, java.awt.Color color, float size, float mass, float dur)
public void addTexturedParticle(Vector2f loc, java.awt.Color color, float mass, float size, float endSizeMult, float durIn, float durOut)
public java.awt.Color getRandomColor()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.