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, isMapTooltipExpandable
public 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 void init(SectorEntityToken entity, java.lang.Object pluginParams)
init
in interface CustomCampaignEntityPlugin
init
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 float getRenderRange()
CustomCampaignEntityPlugin
getRenderRange
in interface CustomCampaignEntityPlugin
getRenderRange
in class BaseCustomEntityPlugin
public void render(CampaignEngineLayers layer, ViewportAPI viewport)
CustomCampaignEntityPlugin
render
in interface CustomCampaignEntityPlugin
render
in class BaseCustomEntityPlugin
public void createMapTooltip(TooltipMakerAPI tooltip, boolean expanded)
createMapTooltip
in interface CustomCampaignEntityPlugin
createMapTooltip
in class BaseCustomEntityPlugin
public boolean hasCustomMapTooltip()
hasCustomMapTooltip
in interface CustomCampaignEntityPlugin
hasCustomMapTooltip
in class BaseCustomEntityPlugin
public void appendToCampaignTooltip(TooltipMakerAPI tooltip, SectorEntityToken.VisibilityLevel level)
appendToCampaignTooltip
in interface CustomCampaignEntityPlugin
appendToCampaignTooltip
in class BaseCustomEntityPlugin
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.