public interface CampaignFleetAPI extends SectorEntityToken, FleetOrStubAPI
SectorEntityToken.VisibilityLevel| Modifier and Type | Method and Description |
|---|---|
void |
addAssignment(FleetAssignment assignment,
SectorEntityToken target,
float maxDurationInDays) |
void |
addAssignment(FleetAssignment assignment,
SectorEntityToken target,
float maxDurationInDays,
Script onCompletion) |
void |
addAssignment(FleetAssignment assignment,
SectorEntityToken target,
float maxDurationInDays,
java.lang.String actionText) |
void |
addAssignment(FleetAssignment assignment,
SectorEntityToken target,
float maxDurationInDays,
java.lang.String actionText,
boolean addTimeToNext,
Script onStart,
Script onCompletion) |
void |
addAssignment(FleetAssignment assignment,
SectorEntityToken target,
float maxDurationInDays,
java.lang.String actionText,
Script onCompletion) |
void |
clearAssignments() |
void |
deflate() |
void |
despawn() |
void |
despawn(CampaignEventListener.FleetDespawnReason reason,
java.lang.Object param) |
void |
fadeInIndicator() |
void |
fadeOutIndicator() |
void |
forceOutIndicator() |
void |
forceSync()
Makes sure the fleet's capacities, crew levels, etc match the fleet composition and cargo.
|
java.lang.Boolean |
getAbortDespawn() |
float |
getAcceleration()
In pixels per second, not per day.
|
CampaignFleetAIAPI |
getAI() |
float |
getBaseSensorRangeToDetect(float sensorProfile) |
BattleAPI |
getBattle() |
PersonAPI |
getCommander() |
MutableCharacterStatsAPI |
getCommanderStats() |
LocationAPI |
getContainingLocation() |
float |
getCurrBurnLevel()
Current burn level - not maximum, but how fast it's currently going.
|
float |
getEffectiveStrength()
Sum of Misc.getMemberStrength(member, true, true, true) for all members.
|
java.util.List<FleetEventListener> |
getEventListeners() |
FleetMemberAPI |
getFlagship() |
FleetDataAPI |
getFleetData() |
int |
getFleetPoints() |
int |
getFleetSizeCount()
fighter, frigate: 1
destroyer: 2
cruiser: 3
capital: 5
|
java.lang.Boolean |
getForceNoSensorProfileUpdate() |
boolean |
getGoSlowOneFrame() |
boolean |
getGoSlowStop() |
FleetInflater |
getInflater() |
SectorEntityToken |
getInteractionTarget()
The fleet is trying to interact with this entity - i.e.
|
org.lwjgl.util.vector.Vector2f |
getLocation() |
FleetLogisticsAPI |
getLogistics() |
java.util.List<FleetMemberAPI> |
getMembersWithFightersCopy() |
org.lwjgl.util.vector.Vector2f |
getMoveDestination() |
java.lang.String |
getName() |
java.lang.String |
getNameWithFaction() |
java.lang.String |
getNameWithFactionKeepCase() |
java.lang.String |
getNullAIActionText() |
int |
getNumCapitals() |
int |
getNumCruisers() |
int |
getNumDestroyers() |
int |
getNumFighters() |
int |
getNumFrigates() |
int |
getNumMembersFast() |
int |
getNumShips() |
MutableFleetStatsAPI |
getStats() |
float |
getTotalSupplyCostPerDay() |
float |
getTravelSpeed() |
org.lwjgl.util.vector.Vector2f |
getVelocity()
In pixels per second.
|
org.lwjgl.util.vector.Vector2f |
getVelocityFromMovementModule() |
FleetMemberViewAPI |
getViewForMember(FleetMemberAPI member)
Returns the "view" of the fleet member in the campaign - i.e.
|
java.util.List<FleetMemberViewAPI> |
getViews()
Returns the "view" of the fleet member in the campaign - i.e.
|
void |
goSlowOneFrame() |
void |
goSlowOneFrame(boolean stop) |
boolean |
hasShipsWithUniqueSig()
Only works for the player fleet.
|
void |
inflateIfNeeded() |
boolean |
isAIMode() |
boolean |
isDespawning() |
java.lang.Boolean |
isDoNotAdvanceAI() |
boolean |
isEmpty() |
boolean |
isFriendlyTo(SectorEntityToken other) |
boolean |
isHidden() |
boolean |
isHostileTo(SectorEntityToken other)
Eventually falls back to faction.isHostile(), but may return true if there's hostility
due to MakeOtherFleetHostile true, a captain's relationship to the player/other captain, etc.
|
boolean |
isInCurrentLocation() |
boolean |
isInflated() |
boolean |
isInHyperspace() |
boolean |
isInHyperspaceTransition() |
java.lang.Boolean |
isNoAutoDespawn() |
boolean |
isNoFactionInName() |
boolean |
isPlayerFleet() |
boolean |
isStationMode() |
boolean |
isValidPlayerFleet() |
boolean |
knowsWhoPlayerIs()
True if the player's transponder is on, or it has seen the player with the transponder on and
hasn't lost track of them since that point.
|
void |
removeFleetMemberWithDestructionFlash(FleetMemberAPI member) |
void |
setAbortDespawn(java.lang.Boolean abortDespawn) |
void |
setAI(CampaignFleetAIAPI campaignFleetAI) |
void |
setAIMode(boolean aiMode)
Turns off supplies/fuel use, accidents, and ship crew requirements.
|
void |
setBattle(BattleAPI battle) |
void |
setCommander(PersonAPI commander) |
void |
setDoNotAdvanceAI(java.lang.Boolean doNotAdvanceAI) |
void |
setFaction(java.lang.String factionId,
boolean includeCaptains) |
void |
setForceNoSensorProfileUpdate(java.lang.Boolean forceNoSensorProfileUpdate) |
void |
setHidden(java.lang.Boolean hidden) |
void |
setInflated(java.lang.Boolean inflated) |
void |
setInflater(FleetInflater inflater) |
void |
setInteractionTarget(SectorEntityToken target) |
void |
setLocation(float x,
float y)
Use this to set the location.
|
void |
setMoveDestination(float x,
float y)
Used by the AI to control the fleet as well, so it's not a reliable way to
order a fleet around as the AI will be calling this method every frame.
|
void |
setMoveDestinationOverride(float x,
float y)
Overrides AI and player input.
|
void |
setName(java.lang.String name) |
void |
setNoAutoDespawn(java.lang.Boolean noAutoDespawn) |
void |
setNoEngaging(float seconds) |
void |
setNoFactionInName(boolean noFactionInName) |
void |
setNullAIActionText(java.lang.String nullAIActionText) |
void |
setPreferredResupplyLocation(SectorEntityToken token) |
void |
setStationMode(java.lang.Boolean stationMode) |
void |
setVelocity(float x,
float y)
In pixels per second, not per day.
|
void |
setWasMousedOverByPlayer(java.lang.Boolean wasMousedOverByPlayer) |
void |
updateCounts()
Updates numCapitals/numCruisers/etc
|
void |
updateFleetView() |
java.lang.Boolean |
wasMousedOverByPlayer() |
boolean |
wasSlowMoving() |
addAbility, addDropRandom, addDropRandom, addDropRandom, addDropValue, addDropValue, addFloatingText, addFloatingText, addScript, addTag, advance, autoUpdateHyperLocationBasedOnInSystemEntityAtRadius, clearAbilities, clearFloatingText, clearTags, forceSensorContactFaderBrightness, forceSensorFaderBrightness, forceSensorFaderOut, getAbilities, getAbility, getActivePerson, getAlwaysUseSensorFaderBrightness, getAutogenJumpPointNameInHyper, getCargo, getCircularOrbitAngle, getCircularOrbitPeriod, getCircularOrbitRadius, getConstellation, getCustomData, getCustomDescriptionId, getCustomEntitySpec, getCustomEntityType, getCustomInteractionDialogImageVisual, getCustomPlugin, getDetectedRangeMod, getDetectionRangeDetailsOverrideMult, getDiscoveryXP, getDropRandom, getDropValue, getExtendedDetectedAtRange, getFacing, getFaction, getFullName, getId, getIndicatorColor, getLightColor, getLightSource, getLocationInHyperspace, getMarket, getMaxSensorRangeToDetect, getMemory, getMemoryWithoutUpdate, getOrbit, getOrbitFocus, getRadius, getSalvageXP, getScripts, getSensorContactFaderBrightness, getSensorFaderBrightness, getSensorProfile, getSensorRangeMod, getSensorStrength, getStarSystem, getTags, getVisibilityLevelOfPlayerFleet, getVisibilityLevelTo, getVisibilityLevelToPlayerFleet, hasAbility, hasDiscoveryXP, hasSalvageXP, hasScriptOfClass, hasSensorProfile, hasSensorStrength, hasTag, isAlive, isDiscoverable, isExpired, isFreeTransfer, isInOrNearSystem, isSkipForJumpPointAutoGen, isStar, isSystemCenter, isTransponderOn, isVisibleToPlayerFleet, isVisibleToSensorsOf, removeAbility, removeScript, removeScriptsOfClass, removeTag, setActivePerson, setAlwaysUseSensorFaderBrightness, setAutogenJumpPointNameInHyper, setCircularOrbit, setCircularOrbitAngle, setCircularOrbitPointingDown, setCircularOrbitWithSpin, setContainingLocation, setCustomDescriptionId, setCustomInteractionDialogImageVisual, setDetectionRangeDetailsOverrideMult, setDiscoverable, setDiscoveryXP, setExpired, setExtendedDetectedAtRange, setFacing, setFaction, setFixedLocation, setFreeTransfer, setId, setInteractionImage, setLightSource, setMarket, setMemory, setOrbit, setOrbitFocus, setSalvageXP, setSensorProfile, setSensorStrength, setSkipForJumpPointAutoGen, setTransponderOnaddAssignmentAtStart, addAssignmentAtStart, addEventListener, addScript, getAssignmentsCopy, getCurrentAssignment, getId, getLocationInHyperspace, getMemoryWithoutUpdate, getScripts, isCurrentAssignment, isFleet, removeEventListener, removeFirstAssignment, removeFirstAssignmentIfItIsboolean isInCurrentLocation()
isInCurrentLocation in interface SectorEntityTokenboolean isInHyperspace()
isInHyperspace in interface SectorEntityTokenvoid setLocation(float x, float y)
setLocation in interface SectorEntityTokenx - y - void despawn()
despawn in interface FleetOrStubAPIvoid despawn(CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
despawn in interface FleetOrStubAPIvoid addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays)
addAssignment in interface FleetOrStubAPIvoid addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, Script onCompletion)
addAssignment in interface FleetOrStubAPIvoid addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, java.lang.String actionText)
addAssignment in interface FleetOrStubAPIvoid addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, java.lang.String actionText, Script onCompletion)
addAssignment in interface FleetOrStubAPIvoid clearAssignments()
clearAssignments in interface FleetOrStubAPIvoid setPreferredResupplyLocation(SectorEntityToken token)
org.lwjgl.util.vector.Vector2f getVelocity()
SectorEntityTokengetVelocity in interface SectorEntityTokenorg.lwjgl.util.vector.Vector2f getLocation()
getLocation in interface FleetOrStubAPIgetLocation in interface SectorEntityTokenFleetLogisticsAPI getLogistics()
LocationAPI getContainingLocation()
getContainingLocation in interface FleetOrStubAPIgetContainingLocation in interface SectorEntityTokenPersonAPI getCommander()
MutableCharacterStatsAPI getCommanderStats()
FleetMemberAPI getFlagship()
boolean isPlayerFleet()
isPlayerFleet in interface SectorEntityTokenFleetDataAPI getFleetData()
void removeFleetMemberWithDestructionFlash(FleetMemberAPI member)
void setName(java.lang.String name)
setName in interface SectorEntityTokenfloat getTotalSupplyCostPerDay()
int getNumCapitals()
int getNumCruisers()
int getNumDestroyers()
int getNumFrigates()
int getNumFighters()
void updateCounts()
float getTravelSpeed()
CampaignFleetAIAPI getAI()
int getFleetPoints()
java.lang.String getNameWithFaction()
java.lang.String getName()
getName in interface SectorEntityTokenboolean isValidPlayerFleet()
void setNoEngaging(float seconds)
MutableFleetStatsAPI getStats()
void setMoveDestination(float x, float y)
x - y - void setMoveDestinationOverride(float x, float y)
x - y - SectorEntityToken getInteractionTarget()
void setInteractionTarget(SectorEntityToken target)
boolean isInHyperspaceTransition()
void setAIMode(boolean aiMode)
aiMode - boolean isAIMode()
int getFleetSizeCount()
void setNoFactionInName(boolean noFactionInName)
boolean isNoFactionInName()
void setCommander(PersonAPI commander)
void forceSync()
boolean knowsWhoPlayerIs()
boolean isHostileTo(SectorEntityToken other)
other - java.util.List<FleetMemberViewAPI> getViews()
FleetMemberViewAPI getViewForMember(FleetMemberAPI member)
float getCurrBurnLevel()
void setVelocity(float x, float y)
float getAcceleration()
void setFaction(java.lang.String factionId, boolean includeCaptains)
void setAI(CampaignFleetAIAPI campaignFleetAI)
java.lang.String getNameWithFactionKeepCase()
boolean isFriendlyTo(SectorEntityToken other)
float getBaseSensorRangeToDetect(float sensorProfile)
getBaseSensorRangeToDetect in interface SectorEntityTokenjava.lang.Boolean isDoNotAdvanceAI()
void setDoNotAdvanceAI(java.lang.Boolean doNotAdvanceAI)
java.util.List<FleetMemberAPI> getMembersWithFightersCopy()
void setNullAIActionText(java.lang.String nullAIActionText)
java.lang.String getNullAIActionText()
void setStationMode(java.lang.Boolean stationMode)
boolean isStationMode()
java.lang.Boolean wasMousedOverByPlayer()
void setWasMousedOverByPlayer(java.lang.Boolean wasMousedOverByPlayer)
boolean isDespawning()
org.lwjgl.util.vector.Vector2f getMoveDestination()
java.util.List<FleetEventListener> getEventListeners()
getEventListeners in interface FleetOrStubAPIFleetInflater getInflater()
void setInflater(FleetInflater inflater)
void inflateIfNeeded()
void deflate()
boolean isEmpty()
java.lang.Boolean getForceNoSensorProfileUpdate()
void setForceNoSensorProfileUpdate(java.lang.Boolean forceNoSensorProfileUpdate)
boolean isInflated()
void setInflated(java.lang.Boolean inflated)
java.lang.Boolean isNoAutoDespawn()
void setNoAutoDespawn(java.lang.Boolean noAutoDespawn)
void addAssignment(FleetAssignment assignment, SectorEntityToken target, float maxDurationInDays, java.lang.String actionText, boolean addTimeToNext, Script onStart, Script onCompletion)
boolean isHidden()
void setHidden(java.lang.Boolean hidden)
java.lang.Boolean getAbortDespawn()
void setAbortDespawn(java.lang.Boolean abortDespawn)
float getEffectiveStrength()
int getNumMembersFast()
void goSlowOneFrame(boolean stop)
boolean wasSlowMoving()
int getNumShips()
void updateFleetView()
boolean hasShipsWithUniqueSig()
boolean getGoSlowStop()
void goSlowOneFrame()
boolean getGoSlowOneFrame()
org.lwjgl.util.vector.Vector2f getVelocityFromMovementModule()
void fadeOutIndicator()
fadeOutIndicator in interface SectorEntityTokenvoid fadeInIndicator()
fadeInIndicator in interface SectorEntityTokenvoid forceOutIndicator()
forceOutIndicator in interface SectorEntityToken