public class AbyssalLightEntityPlugin extends BaseCustomEntityPlugin
Modifier and Type | Class and Description |
---|---|
static class |
AbyssalLightEntityPlugin.AbyssalLightParams |
static class |
AbyssalLightEntityPlugin.AbyssalLightSoundStopper |
static class |
AbyssalLightEntityPlugin.DespawnType |
Modifier and Type | Field and Description |
---|---|
static float |
DESPAWN_POOF_THRESHOLD |
protected AbyssalLightEntityPlugin.DespawnType |
despawnType |
protected FaderUtil |
fader |
protected FlickerUtilV2 |
flicker |
protected float |
flickerDur |
protected float |
frequencyMult |
static float |
GLOW_FREQUENCY |
static float |
MAX_DURATION |
static float |
MAX_SIZE |
static float |
MIN_DURATION |
static float |
MIN_SIZE |
protected AbyssalLightEntityPlugin.AbyssalLightParams |
params |
protected float |
phase |
protected boolean |
playedDespawnSound |
static float |
PLAYER_PROXIMITY_MAX_BRIGHTNESS_AT |
static float |
PLAYER_PROXIMITY_MIN_BRIGHTNESS |
static float |
PLAYER_PROXIMITY_MIN_BRIGHTNESS_AT |
protected float |
untilFrequencyChange |
protected float |
untilSoundPlayed |
entity
Constructor and Description |
---|
AbyssalLightEntityPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount) |
void |
despawn(AbyssalLightEntityPlugin.DespawnType type) |
float |
getDespawnProgress() |
float |
getFlickerBasedMult() |
float |
getGlowAlpha() |
AbyssalLightEntityPlugin.AbyssalLightParams |
getParams() |
static float |
getPlayerProximityBasedBrightnessFactor(SectorEntityToken entity) |
static float |
getPlayerProximityBasedBrightnessFactor(Vector2f loc) |
static float |
getProximityBasedBrightnessFactor(CampaignFleetAPI from,
Vector2f loc) |
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) |
boolean |
isDespawning() |
void |
render(CampaignEngineLayers layer,
ViewportAPI viewport)
Should only render for specified layer.
|
void |
updateFrequency(float amount) |
void |
updateSoundDelayAndPlaySound(float amount) |
appendToCampaignTooltip, createMapTooltip, getMapTooltipWidth, hasCustomMapTooltip, isMapTooltipExpandable
public static float MIN_DURATION
public static float MAX_DURATION
public static float MIN_SIZE
public static float MAX_SIZE
public static float DESPAWN_POOF_THRESHOLD
public static float GLOW_FREQUENCY
public static float PLAYER_PROXIMITY_MIN_BRIGHTNESS_AT
public static float PLAYER_PROXIMITY_MAX_BRIGHTNESS_AT
public static float PLAYER_PROXIMITY_MIN_BRIGHTNESS
protected float phase
protected float frequencyMult
protected FlickerUtilV2 flicker
protected FaderUtil fader
protected AbyssalLightEntityPlugin.AbyssalLightParams params
protected float untilFrequencyChange
protected float untilSoundPlayed
protected float flickerDur
protected AbyssalLightEntityPlugin.DespawnType despawnType
protected boolean playedDespawnSound
public void init(SectorEntityToken entity, java.lang.Object pluginParams)
init
in interface CustomCampaignEntityPlugin
init
in class BaseCustomEntityPlugin
public boolean isDespawning()
public void despawn(AbyssalLightEntityPlugin.DespawnType type)
public void updateSoundDelayAndPlaySound(float amount)
public void updateFrequency(float amount)
public AbyssalLightEntityPlugin.AbyssalLightParams getParams()
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 getFlickerBasedMult()
public float getGlowAlpha()
public float getRenderRange()
CustomCampaignEntityPlugin
getRenderRange
in interface CustomCampaignEntityPlugin
getRenderRange
in class BaseCustomEntityPlugin
public float getDespawnProgress()
public void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPlugin
render
in interface CustomCampaignEntityPlugin
render
in class BaseCustomEntityPlugin
public static float getPlayerProximityBasedBrightnessFactor(SectorEntityToken entity)
public static float getPlayerProximityBasedBrightnessFactor(Vector2f loc)
public static float getProximityBasedBrightnessFactor(CampaignFleetAPI from, Vector2f loc)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.