Starsector API
Loading...
Searching...
No Matches
CombatFleetManagerAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.combat;
2
3import java.util.List;
4import java.util.Map;
5
6import org.lwjgl.util.vector.Vector2f;
7
8import com.fs.starfarer.api.characters.PersonAPI;
9import com.fs.starfarer.api.fleet.FleetGoal;
10import com.fs.starfarer.api.fleet.FleetMemberAPI;
11
17public interface CombatFleetManagerAPI {
18 public interface AssignmentInfo {
21 List<DeployedFleetMemberAPI> getAssignedMembers();
22 }
23
24
25// public MutableStat getCommandPointsStat();
26// public MutableStat getMaxFleetPoints();
27
39 public ShipAPI spawnShipOrWing(String specId, Vector2f location, float facing);
40
53 public ShipAPI spawnShipOrWing(String specId, Vector2f location, float facing, float initialBurnDur);
54
63 public ShipAPI spawnFleetMember(FleetMemberAPI member, Vector2f location, float facing, float initialBurnDur);
64
65
66
72 public ShipAPI getShipFor(FleetMemberAPI fleetMember);
73
74 public List<FleetMemberAPI> getDeployedCopy();
75 public List<FleetMemberAPI> getReservesCopy();
76
77
80 AssignmentTargetAPI createWaypoint(Vector2f location, boolean ally);
81
82
86
88
90
91 List<FleetMemberAPI> getDisabledCopy();
92 List<FleetMemberAPI> getDestroyedCopy();
93 List<FleetMemberAPI> getRetreatedCopy();
94
96 void setSuppressDeploymentMessages(boolean suppressDeploymentMessages);
97
98
100 List<DeployedFleetMemberAPI> getStations();
101
102 List<DeployedFleetMemberAPI> getDeployedCopyDFM();
103
104 int getOwner();
105
106 void setDefaultCommander(PersonAPI defaultCommander);
108
114
120
122 void setDeployedStation(boolean deployedStation);
123
124 void setDeploymentYOffset(float deploymentYOffset);
126
131
132 List<PersonAPI> getAllFleetCommanders();
134
135 List<DeployedFleetMemberAPI> getAllEverDeployedCopy();
136
138
143 void setCanForceShipsToEngageWhenBattleClearlyLost(boolean canForceShipsToEngageWhenBattleClearlyLost);
144
145 ShipAPI spawnShipOrWing(String specId, Vector2f location, float facing, float initialBurnDur, PersonAPI captain);
146
147 Map<DeployedFleetMemberAPI, DeployedFleetMemberAPI> getShardToOriginalShipMap();
148
150
152
154
157
158 void removeDeployed(ShipAPI ship, boolean retreated);
159
160 void setMaxStrength(int maxStrength);
162 void modifyFlatMax(String source, int value);
163 void modifyPercentMax(String source, float percent);
165
166 void removeDeployed(FighterWingAPI wing, boolean retreated);
167}
168
169
170
171
172
List< DeployedFleetMemberAPI > getDeployedCopyDFM()
List< DeployedFleetMemberAPI > getAllEverDeployedCopy()
ShipAPI spawnShipOrWing(String specId, Vector2f location, float facing)
DeployedFleetMemberAPI getDeployedFleetMemberFromAllEverDeployed(ShipAPI ship)
AssignmentTargetAPI createWaypoint(Vector2f location, boolean ally)
void setDeploymentYOffset(float deploymentYOffset)
void removeFromReserves(FleetMemberAPI member)
void removeDeployed(ShipAPI ship, boolean retreated)
void removeDeployed(FighterWingAPI wing, boolean retreated)
ShipAPI spawnFleetMember(FleetMemberAPI member, Vector2f location, float facing, float initialBurnDur)
ShipAPI getShipFor(FleetMemberAPI fleetMember)
DeployedFleetMemberAPI getDeployedFleetMember(ShipAPI ship)
void modifyFlatMax(String source, int value)
void setSuppressDeploymentMessages(boolean suppressDeploymentMessages)
ShipAPI spawnShipOrWing(String specId, Vector2f location, float facing, float initialBurnDur, PersonAPI captain)
Map< DeployedFleetMemberAPI, DeployedFleetMemberAPI > getShardToOriginalShipMap()
void setCanForceShipsToEngageWhenBattleClearlyLost(boolean canForceShipsToEngageWhenBattleClearlyLost)
void setDefaultCommander(PersonAPI defaultCommander)
void modifyPercentMax(String source, float percent)
CombatTaskManagerAPI getTaskManager(boolean ally)
void setDeployedStation(boolean deployedStation)
void setAdmiralAI(AdmiralAIPlugin admiralAI)
List< DeployedFleetMemberAPI > getStations()
DeployedFleetMemberAPI getDeployedFleetMemberEvenIfDisabled(ShipAPI ship)
ShipAPI spawnShipOrWing(String specId, Vector2f location, float facing, float initialBurnDur)