Starsector API
Loading...
Searching...
No Matches
CampaignFleetAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign;
2
3import java.util.List;
4
5import org.lwjgl.util.vector.Vector2f;
6
7import com.fs.starfarer.api.Script;
8import com.fs.starfarer.api.campaign.CampaignEventListener.FleetDespawnReason;
9import com.fs.starfarer.api.campaign.ai.CampaignFleetAIAPI;
10import com.fs.starfarer.api.campaign.listeners.FleetEventListener;
11import com.fs.starfarer.api.characters.MutableCharacterStatsAPI;
12import com.fs.starfarer.api.characters.PersonAPI;
13import com.fs.starfarer.api.fleet.FleetLogisticsAPI;
14import com.fs.starfarer.api.fleet.FleetMemberAPI;
15import com.fs.starfarer.api.fleet.FleetMemberViewAPI;
16import com.fs.starfarer.api.fleet.MutableFleetStatsAPI;
17
24
29 boolean isInHyperspace();
30
36 void setLocation(float x, float y);
37
38 //boolean isAlive();
39
40 void despawn();
41 void despawn(FleetDespawnReason reason, Object param);
42
43 void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays);
44 void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, Script onCompletion);
45 void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, String actionText);
46 void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, String actionText, Script onCompletion);
49
50
51 //FactionAPI getFaction();
52 Vector2f getVelocity();
53
54 /* (non-Javadoc)
55 * Do not use to set the location, it won't work.
56 *
57 * Use setLocation instead.
58 * @see com.fs.starfarer.api.campaign.SectorEntityToken#getLocation()
59 */
60 Vector2f getLocation();
61
62 FleetLogisticsAPI getLogistics();
63
65
66 PersonAPI getCommander();
67 MutableCharacterStatsAPI getCommanderStats();
68 FleetMemberAPI getFlagship();
69 boolean isPlayerFleet();
70
72// List<FleetMemberAPI> getMembersListCopy();
73// List<FleetMemberAPI> getCombatReadyMembersListCopy();
74// int getFleetPoints();
75// void addFleetMember(FleetMemberAPI member);
76// void removeFleetMember(FleetMemberAPI member);
77
78 void removeFleetMemberWithDestructionFlash(FleetMemberAPI member);
79
80 void setName(String name);
91
93
94 CampaignFleetAIAPI getAI();
95
97
99 String getName();
100
101
106
107 void setNoEngaging(float seconds);
108
109 MutableFleetStatsAPI getStats();
110
111
118 void setMoveDestination(float x, float y);
119
125 void setMoveDestinationOverride(float x, float y);
126
132
134
136
137
142 void setAIMode(boolean aiMode);
143 boolean isAIMode();
144
145
154
155
156 void setNoFactionInName(boolean noFactionInName);
158 void setCommander(PersonAPI commander);
159
160
165 void forceSync();
166
173
174
182
183
184
191 List<FleetMemberViewAPI> getViews();
192
199 FleetMemberViewAPI getViewForMember(FleetMemberAPI member);
200
201
207
211 void setVelocity(float x, float y);
212
213
219 void setFaction(String factionId, boolean includeCaptains);
221 void setBattle(BattleAPI battle);
222
223 void setAI(CampaignFleetAIAPI campaignFleetAI);
226 float getBaseSensorRangeToDetect(float sensorProfile);
227
229 void setDoNotAdvanceAI(Boolean doNotAdvanceAI);
230 List<FleetMemberAPI> getMembersWithFightersCopy();
231
232// FleetStubAPI getStub();
233// void setStub(FleetStubAPI stub);
234//
235// boolean isConvertToStub();
236// void setConvertToStub(boolean convertToStub);
237
238 void setNullAIActionText(String nullAIActionText);
240
241 void setStationMode(Boolean stationMode);
242 boolean isStationMode();
245 boolean isDespawning();
247 List<FleetEventListener> getEventListeners();
248
252 void deflate();
253 boolean isEmpty();
255 void setForceNoSensorProfileUpdate(Boolean forceNoSensorProfileUpdate);
256
257 boolean isInflated();
258 void setInflated(Boolean inflated);
260 void setNoAutoDespawn(Boolean noAutoDespawn);
262 float maxDurationInDays, String actionText, boolean addTimeToNext,
263 Script onStart, Script onCompletion);
264
265 boolean isHidden();
266 void setHidden(Boolean hidden);
268 void setAbortDespawn(Boolean abortDespawn);
269
270
278
279 void goSlowOneFrame(boolean stop);
280 boolean wasSlowMoving();
283
289 boolean getGoSlowStop();
296}
297
298
299
300
301
302
void setNoAutoDespawn(Boolean noAutoDespawn)
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, Script onCompletion)
FleetMemberViewAPI getViewForMember(FleetMemberAPI member)
void setAbortDespawn(Boolean abortDespawn)
void setFaction(String factionId, boolean includeCaptains)
float getBaseSensorRangeToDetect(float sensorProfile)
List< FleetMemberAPI > getMembersWithFightersCopy()
void removeFleetMemberWithDestructionFlash(FleetMemberAPI member)
List< FleetMemberViewAPI > getViews()
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, String actionText, Script onCompletion)
void setNullAIActionText(String nullAIActionText)
void setAI(CampaignFleetAIAPI campaignFleetAI)
List< FleetEventListener > getEventListeners()
boolean isFriendlyTo(SectorEntityToken other)
void setInflater(FleetInflater inflater)
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, String actionText)
void setInteractionTarget(SectorEntityToken target)
void setNoFactionInName(boolean noFactionInName)
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays)
boolean isHostileTo(SectorEntityToken other)
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, String actionText, boolean addTimeToNext, Script onStart, Script onCompletion)
MutableCharacterStatsAPI getCommanderStats()
void setForceNoSensorProfileUpdate(Boolean forceNoSensorProfileUpdate)
void setDoNotAdvanceAI(Boolean doNotAdvanceAI)
void setMoveDestinationOverride(float x, float y)
void setPreferredResupplyLocation(SectorEntityToken token)
void despawn(FleetDespawnReason reason, Object param)
void setWasMousedOverByPlayer(Boolean wasMousedOverByPlayer)