public interface CampaignTerrainPlugin
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount) |
boolean |
canPlayerHoldStationIn() |
boolean |
containsEntity(SectorEntityToken other) |
boolean |
containsPoint(Vector2f point,
float radius) |
void |
createTooltip(TooltipMakerAPI tooltip,
boolean expanded) |
java.util.EnumSet<CampaignEngineLayers> |
getActiveLayers()
Set of layers can not change.
|
java.lang.String |
getIconSpriteName() |
float |
getMaxEffectRadius(Vector2f locFrom)
Mainly intended for AI use.
|
float |
getMinEffectRadius(Vector2f locFrom)
Mainly intended for AI use.
|
java.lang.String |
getNameAOrAn() |
java.awt.Color |
getNameColor() |
java.lang.String |
getNameForTooltip() |
float |
getOptimalEffectRadius(Vector2f locFrom)
Mainly intended for AI use.
|
float |
getRenderRange()
How far away from the viewport the center of this entity can be before it stops being rendered.
|
TerrainSpecAPI |
getSpec() |
java.lang.String |
getTerrainId() |
java.lang.String |
getTerrainName() |
float |
getTooltipWidth() |
boolean |
hasAIFlag(java.lang.Object flag) |
boolean |
hasAIFlag(java.lang.Object flag,
CampaignFleetAPI fleet) |
boolean |
hasMapIcon() |
boolean |
hasTooltip() |
void |
init(java.lang.String terrainId,
SectorEntityToken entity,
java.lang.Object param) |
boolean |
isTooltipExpandable() |
void |
render(CampaignEngineLayers layer,
ViewportAPI viewport) |
void |
renderOnMap(float factor,
float alphaMult)
First pass.
|
void |
renderOnMapAbove(float factor,
float alphaMult)
Second pass.
|
void |
renderOnRadar(Vector2f radarCenter,
float factor,
float alphaMult) |
void |
setTerrainName(java.lang.String name) |
void init(java.lang.String terrainId, SectorEntityToken entity, java.lang.Object param)
java.lang.String getTerrainId()
float getRenderRange()
java.util.EnumSet<CampaignEngineLayers> getActiveLayers()
void render(CampaignEngineLayers layer, ViewportAPI viewport)
void advance(float amount)
void renderOnMap(float factor, float alphaMult)
factor
- conversion factor from world coordinates to map screen coordinates, including current zoom level.alphaMult
- void renderOnMapAbove(float factor, float alphaMult)
factor
- conversion factor from world coordinates to map screen coordinates, including current zoom level.alphaMult
- boolean containsEntity(SectorEntityToken other)
boolean containsPoint(Vector2f point, float radius)
boolean hasMapIcon()
boolean hasTooltip()
void createTooltip(TooltipMakerAPI tooltip, boolean expanded)
boolean isTooltipExpandable()
float getTooltipWidth()
java.lang.String getTerrainName()
java.awt.Color getNameColor()
boolean canPlayerHoldStationIn()
TerrainSpecAPI getSpec()
boolean hasAIFlag(java.lang.Object flag)
boolean hasAIFlag(java.lang.Object flag, CampaignFleetAPI fleet)
float getMaxEffectRadius(Vector2f locFrom)
locFrom
- float getMinEffectRadius(Vector2f locFrom)
locFrom
- float getOptimalEffectRadius(Vector2f locFrom)
locFrom
- void setTerrainName(java.lang.String name)
java.lang.String getIconSpriteName()
void renderOnRadar(Vector2f radarCenter, float factor, float alphaMult)
java.lang.String getNameAOrAn()
java.lang.String getNameForTooltip()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.