public class CargoPodsEntityPlugin extends BaseCustomEntityPlugin
| Modifier and Type | Field and Description |
|---|---|
protected float |
elapsed |
protected float |
extraDays |
protected GenericFieldItemManager |
manager |
protected float |
maxDays |
protected java.lang.Boolean |
neverExpire |
entity| Constructor and Description |
|---|
CargoPodsEntityPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount) |
static float |
computeDetectionRange(float radius) |
float |
getDaysLeft() |
float |
getElapsed() |
float |
getExtraDays() |
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) |
java.lang.Boolean |
isNeverExpire() |
void |
render(CampaignEngineLayers layer,
ViewportAPI viewport)
Should only render for specified layer.
|
void |
setElapsed(float elapsed) |
void |
setExtraDays(float extraDays) |
void |
setNeverExpire(java.lang.Boolean neverExpire) |
void |
updateBaseMaxDays() |
appendToCampaignTooltip, createMapTooltip, getMapTooltipWidth, hasCustomMapTooltip, isMapTooltipExpandableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRenderWhenViewportAlphaMultIsZeroprotected transient GenericFieldItemManager manager
protected float elapsed
protected float maxDays
protected float extraDays
protected java.lang.Boolean neverExpire
public CargoPodsEntityPlugin()
public static float computeDetectionRange(float radius)
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 void updateBaseMaxDays()
public float getRenderRange()
CustomCampaignEntityPlugingetRenderRange in interface CustomCampaignEntityPlugingetRenderRange in class BaseCustomEntityPluginpublic void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPluginrender in interface CustomCampaignEntityPluginrender in class BaseCustomEntityPluginpublic void setNeverExpire(java.lang.Boolean neverExpire)
public java.lang.Boolean isNeverExpire()
public float getDaysLeft()
public float getElapsed()
public void setElapsed(float elapsed)
public float getExtraDays()
public void setExtraDays(float extraDays)