1package com.fs.starfarer.api.combat;
3import com.fs.starfarer.api.Global;
4import com.fs.starfarer.api.campaign.CampaignFleetAPI;
5import com.fs.starfarer.api.fleet.FleetGoal;
6import com.fs.starfarer.api.impl.campaign.ids.Factions;
7import com.fs.starfarer.api.impl.campaign.ids.MemFlags;
11 private float initialStepSize = 1f;
12 private float initialNumSteps = 0f;
15 private float initialDeploymentBurnDuration = 1f;
16 private float normalDeploymentBurnDuration = 6f;
17 private float escapeDeploymentBurnDuration = 1.5f;
18 private float standoffRange = 6000f;
23 private CampaignFleetAPI playerFleet;
24 private FleetGoal playerGoal;
25 private CampaignFleetAPI otherFleet;
26 private FleetGoal otherGoal;
28 private float pursuitRangeModifier = 0f;
30 private int playerCommandPoints = 0;
41 FleetGoal playerGoal, CampaignFleetAPI otherFleet,
42 FleetGoal otherGoal) {
43 this.playerFleet = playerFleet;
44 this.playerGoal = playerGoal;
45 this.otherFleet = otherFleet;
46 this.otherGoal = otherGoal;
48 if (otherFleet !=
null && otherFleet.getFaction() !=
null) {
49 boolean ftl = otherFleet.getFaction().getCustomBoolean(Factions.CUSTOM_FIGHT_TO_THE_LAST);
50 if (otherFleet.getMemoryWithoutUpdate().contains(MemFlags.FLEET_FIGHT_TO_THE_LAST)) {
51 ftl = otherFleet.getMemoryWithoutUpdate().getBoolean(MemFlags.FLEET_FIGHT_TO_THE_LAST);
58 return playerCommandPoints;
62 this.playerCommandPoints = playerCommandPoints;
82 return pursuitRangeModifier;
86 this.pursuitRangeModifier = pursuitRangeModifier;
90 return initialDeploymentBurnDuration;
94 this.initialDeploymentBurnDuration = initialDeploymentBurnDuration;
98 return normalDeploymentBurnDuration;
102 this.normalDeploymentBurnDuration = normalDeploymentBurnDuration;
106 return escapeDeploymentBurnDuration;
110 this.escapeDeploymentBurnDuration = escapeDeploymentBurnDuration;
114 return standoffRange;
118 this.standoffRange = standoffRange;
122 return initialEscapeRange;
126 this.initialEscapeRange = initialEscapeRange;
130 return flankDeploymentDistance;
134 this.flankDeploymentDistance = sideDeploymentDistance;
138 return initialStepSize;
142 this.initialStepSize = initialStepSize;
146 return initialNumSteps;
150 this.initialNumSteps = initialNumSteps;
static SettingsAPI getSettings()
float getInitialEscapeRange()
float getInitialStepSize()
void setInitialStepSize(float initialStepSize)
void setInitialDeploymentBurnDuration(float initialDeploymentBurnDuration)
void setNormalDeploymentBurnDuration(float normalDeploymentBurnDuration)
CampaignFleetAPI getOtherFleet()
float getInitialDeploymentBurnDuration()
boolean objectivesAllowed
float getNormalDeploymentBurnDuration()
void setInitialNumSteps(float initialNumSteps)
FleetGoal getPlayerGoal()
float getPursuitRangeModifier()
int getPlayerCommandPoints()
void setEscapeDeploymentBurnDuration(float escapeDeploymentBurnDuration)
void setStandoffRange(float standoffRange)
void setPlayerCommandPoints(int playerCommandPoints)
BattleCreationContext(CampaignFleetAPI playerFleet, FleetGoal playerGoal, CampaignFleetAPI otherFleet, FleetGoal otherGoal)
CampaignFleetAPI getPlayerFleet()
float getEscapeDeploymentBurnDuration()
void setPursuitRangeModifier(float pursuitRangeModifier)
float getFlankDeploymentDistance()
float getInitialNumSteps()
void setInitialEscapeRange(float initialEscapeRange)
void setFlankDeploymentDistance(float sideDeploymentDistance)
float getFloat(String key)