public class WarningBeaconEntityPlugin extends BaseCustomEntityPlugin
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GLOW_COLOR_KEY |
static float |
GLOW_FREQUENCY |
static java.lang.String |
PING_COLOR_KEY |
static java.lang.String |
PING_FREQ_KEY |
static java.lang.String |
PING_ID_KEY |
entity| Constructor and Description |
|---|
WarningBeaconEntityPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
advance(float amount) |
void |
appendToCampaignTooltip(TooltipMakerAPI tooltip,
SectorEntityToken.VisibilityLevel level) |
void |
createMapTooltip(TooltipMakerAPI tooltip,
boolean expanded) |
float |
getRenderRange()
How far away from the viewport the center of this entity can be before it stops being rendered.
|
boolean |
hasCustomMapTooltip() |
void |
init(SectorEntityToken entity,
java.lang.Object pluginParams) |
void |
render(CampaignEngineLayers layer,
ViewportAPI viewport)
Should only render for specified layer.
|
getMapTooltipWidth, isMapTooltipExpandableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRenderWhenViewportAlphaMultIsZeropublic static java.lang.String GLOW_COLOR_KEY
public static java.lang.String PING_COLOR_KEY
public static java.lang.String PING_ID_KEY
public static java.lang.String PING_FREQ_KEY
public static float GLOW_FREQUENCY
public WarningBeaconEntityPlugin()
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 float getRenderRange()
CustomCampaignEntityPlugingetRenderRange in interface CustomCampaignEntityPlugingetRenderRange in class BaseCustomEntityPluginpublic void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPluginrender in interface CustomCampaignEntityPluginrender in class BaseCustomEntityPluginpublic void createMapTooltip(TooltipMakerAPI tooltip, boolean expanded)
createMapTooltip in interface CustomCampaignEntityPlugincreateMapTooltip in class BaseCustomEntityPluginpublic boolean hasCustomMapTooltip()
hasCustomMapTooltip in interface CustomCampaignEntityPluginhasCustomMapTooltip in class BaseCustomEntityPluginpublic void appendToCampaignTooltip(TooltipMakerAPI tooltip, SectorEntityToken.VisibilityLevel level)
appendToCampaignTooltip in interface CustomCampaignEntityPluginappendToCampaignTooltip in class BaseCustomEntityPlugin