public class BattleCreationPluginImpl extends java.lang.Object implements BattleCreationPlugin
Modifier and Type | Class and Description |
---|---|
protected static class |
BattleCreationPluginImpl.NearbyPlanetData |
static interface |
BattleCreationPluginImpl.NebulaTextureProvider |
Modifier and Type | Field and Description |
---|---|
static float |
ABYSS_MISSILE_SPEED_PENALTY |
static float |
ABYSS_OVERLAY_ALPHA |
static float |
ABYSS_SHIP_SPEED_PENALTY |
protected float |
abyssalDepth |
protected static java.lang.String |
COMM |
protected BattleCreationContext |
context |
protected StarCoronaTerrainPlugin |
corona |
protected float |
coronaIntensity |
protected boolean |
escape |
protected float |
height |
protected MissionDefinitionAPI |
loader |
protected static java.lang.String |
NAV |
protected java.util.List<java.lang.String> |
objs |
protected static float |
PLANET_AREA_HEIGHT |
protected static float |
PLANET_AREA_WIDTH |
protected static float |
PLANET_MAX_DIST |
protected float |
prevXDir |
protected float |
prevYDir |
protected PulsarBeamTerrainPlugin |
pulsar |
protected static java.lang.String |
SENSOR |
protected static float |
SINGLE_PLANET_MAX_DIST |
protected float |
width |
protected float |
xPad |
protected float |
yPad |
Constructor and Description |
---|
BattleCreationPluginImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addClosestPlanet() |
protected void |
addEscapeObjectives(MissionDefinitionAPI loader,
int num,
java.util.Random random) |
protected void |
addMultiplePlanets() |
protected void |
addObjectiveAt(float xMult,
float yMult,
float xOff,
float yOff,
java.util.Random random) |
protected void |
addObjectiveAt(float xMult,
float yMult,
float xOff,
float yOff,
java.lang.String type,
java.util.Random random) |
protected void |
addObjectives(MissionDefinitionAPI loader,
int num,
java.util.Random random) |
void |
afterDefinitionLoad(CombatEngineAPI engine) |
protected float |
countNearbyAsteroids(CampaignFleetAPI playerFleet) |
protected void |
createMap(java.util.Random random) |
protected PlanetAPI |
getClosestPlanet(CampaignFleetAPI playerFleet) |
protected java.util.List<BattleCreationPluginImpl.NearbyPlanetData> |
getNearbyPlanets(CampaignFleetAPI playerFleet) |
void |
initBattle(BattleCreationContext context,
MissionDefinitionAPI loader) |
protected java.lang.String |
pickAny(java.util.Random random) |
protected java.lang.String[] |
pickCommRelays(int min,
int max,
boolean comm1,
boolean comm2,
boolean comm3,
boolean comm4,
java.util.Random random) |
protected void |
setRandomBackground(MissionDefinitionAPI loader,
java.util.Random random) |
public static float ABYSS_SHIP_SPEED_PENALTY
public static float ABYSS_MISSILE_SPEED_PENALTY
public static float ABYSS_OVERLAY_ALPHA
protected float width
protected float height
protected float xPad
protected float yPad
protected java.util.List<java.lang.String> objs
protected float prevXDir
protected float prevYDir
protected boolean escape
protected BattleCreationContext context
protected MissionDefinitionAPI loader
protected float abyssalDepth
protected float coronaIntensity
protected StarCoronaTerrainPlugin corona
protected PulsarBeamTerrainPlugin pulsar
protected static java.lang.String COMM
protected static java.lang.String SENSOR
protected static java.lang.String NAV
protected static float PLANET_AREA_WIDTH
protected static float PLANET_AREA_HEIGHT
protected static float PLANET_MAX_DIST
protected static float SINGLE_PLANET_MAX_DIST
public void initBattle(BattleCreationContext context, MissionDefinitionAPI loader)
initBattle
in interface BattleCreationPlugin
public void afterDefinitionLoad(CombatEngineAPI engine)
afterDefinitionLoad
in interface BattleCreationPlugin
protected void createMap(java.util.Random random)
protected void addClosestPlanet()
protected void addMultiplePlanets()
protected void setRandomBackground(MissionDefinitionAPI loader, java.util.Random random)
protected void addObjectives(MissionDefinitionAPI loader, int num, java.util.Random random)
protected java.lang.String[] pickCommRelays(int min, int max, boolean comm1, boolean comm2, boolean comm3, boolean comm4, java.util.Random random)
protected void addEscapeObjectives(MissionDefinitionAPI loader, int num, java.util.Random random)
protected void addObjectiveAt(float xMult, float yMult, float xOff, float yOff, java.util.Random random)
protected void addObjectiveAt(float xMult, float yMult, float xOff, float yOff, java.lang.String type, java.util.Random random)
protected java.lang.String pickAny(java.util.Random random)
protected float countNearbyAsteroids(CampaignFleetAPI playerFleet)
protected java.util.List<BattleCreationPluginImpl.NearbyPlanetData> getNearbyPlanets(CampaignFleetAPI playerFleet)
protected PlanetAPI getClosestPlanet(CampaignFleetAPI playerFleet)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.