Starsector API
|
Classes | |
enum | HullSize |
Copyright 2012 Fractal Softworks, LLC
Definition at line 23 of file ShipAPI.java.
void com.fs.starfarer.api.combat.ShipAPI.abortLanding | ( | ) |
Should be set to "true" to allow the ship to go outside the map bounds and be picked up as "retreated" when it gets past the proper map boundary.
retreating | Call this if beginLandingAnimation() was already called, but the ship being landed on was destroyed before FighterLaunchBayAPI.land() is called. |
Will cause the fighter to reverse its landing animation and take off.
void com.fs.starfarer.api.combat.ShipAPI.addAfterimage | ( | Color | color, |
float | locX, | ||
float | locY, | ||
float | velX, | ||
float | velY, | ||
float | maxJitter, | ||
float | in, | ||
float | dur, | ||
float | out, | ||
boolean | additive, | ||
boolean | combineWithSpriteColor, | ||
boolean | aboveShip | ||
) |
Location is relative to center of ship.
color | |
locX | |
locY | |
velX | |
velY | |
maxJitter | |
in | |
dur | |
out | |
additive | |
combineWithSpriteColor | |
aboveShip |
void com.fs.starfarer.api.combat.ShipAPI.addListener | ( | Object | listener | ) |
void com.fs.starfarer.api.combat.ShipAPI.addTag | ( | String | tag | ) |
void com.fs.starfarer.api.combat.ShipAPI.applyCriticalMalfunction | ( | Object | module | ) |
module | WeaponAPI or ShipEngineAPI. |
void com.fs.starfarer.api.combat.ShipAPI.applyCriticalMalfunction | ( | Object | module, |
boolean | permanent | ||
) |
boolean com.fs.starfarer.api.combat.ShipAPI.areAnyEnemiesInRange | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.areSignificantEnemiesInRange | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.beginLandingAnimation | ( | ShipAPI | target | ) |
The fighter will become invulnerable and gradually get smaller/fade out. Purely visual. If nothing else is done, it will remain this way, so FighterLaunchBayAPI.land() should be called to remove it from the engine when the landing animation is complete.
target | Used to determine what ship the fighter's shadow is cast on. |
void com.fs.starfarer.api.combat.ShipAPI.blockCommandForOneFrame | ( | ShipCommand | command | ) |
void com.fs.starfarer.api.combat.ShipAPI.clearDamageDecals | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.cloneVariant | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.controlsLocked | ( | ) |
If controls are locked due to crash (or regular) mothballing; only applicable in "ESCAPE" battles.
void com.fs.starfarer.api.combat.ShipAPI.ensureClonedStationSlotSpec | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.fadeToColor | ( | Object | source, |
Color | color, | ||
float | durIn, | ||
float | durOut, | ||
float | maxShift | ||
) |
float com.fs.starfarer.api.combat.ShipAPI.findBestArmorInArc | ( | float | facing, |
float | arc | ||
) |
float com.fs.starfarer.api.combat.ShipAPI.getAcceleration | ( | ) |
EnumSet< CombatEngineLayers > com.fs.starfarer.api.combat.ShipAPI.getActiveLayers | ( | ) |
ShipwideAIFlags com.fs.starfarer.api.combat.ShipAPI.getAIFlags | ( | ) |
Null if the ship is not AI-controlled.
float com.fs.starfarer.api.combat.ShipAPI.getAimAccuracy | ( | ) |
List< WeaponAPI > com.fs.starfarer.api.combat.ShipAPI.getAllWeapons | ( | ) |
List< FighterWingAPI > com.fs.starfarer.api.combat.ShipAPI.getAllWings | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getAlphaMult | ( | ) |
ArmorGridAPI com.fs.starfarer.api.combat.ShipAPI.getArmorGrid | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getAverageArmorInSlice | ( | float | direction, |
float | arc | ||
) |
float com.fs.starfarer.api.combat.ShipAPI.getBaseCriticalMalfunctionDamage | ( | ) |
PersonAPI com.fs.starfarer.api.combat.ShipAPI.getCaptain | ( | ) |
List< ShipAPI > com.fs.starfarer.api.combat.ShipAPI.getChildModulesCopy | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getCombinedAlphaMult | ( | ) |
Alpha the base ship should be rendered at. Includes alpha modifier from ship systems and from fighters taking off/landing.
Vector2f com.fs.starfarer.api.combat.ShipAPI.getCopyLocation | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getCRAtDeployment | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getCurrentCR | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getCurrFlux | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getDeceleration | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getDeployCost | ( | ) |
CR cost to deploy, range is [0, 1]. For fighters returns cost for entire wing.
List< ShipAPI > com.fs.starfarer.api.combat.ShipAPI.getDeployedDrones | ( | ) |
Set< WeaponAPI > com.fs.starfarer.api.combat.ShipAPI.getDisabledWeapons | ( | ) |
All weapons ever disabled during the last battle.
ShipAPI com.fs.starfarer.api.combat.ShipAPI.getDroneSource | ( | ) |
ShipEngineControllerAPI com.fs.starfarer.api.combat.ShipAPI.getEngineController | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getEngineFractionPermanentlyDisabled | ( | ) |
Color com.fs.starfarer.api.combat.ShipAPI.getExplosionFlashColorOverride | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getExplosionScale | ( | ) |
Vector2f com.fs.starfarer.api.combat.ShipAPI.getExplosionVelocityOverride | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getExtraAlphaMult | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getExtraAlphaMult2 | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getFighterTimeBeforeRefit | ( | ) |
Vector2f com.fs.starfarer.api.combat.ShipAPI.getFixedLocation | ( | ) |
PersonAPI com.fs.starfarer.api.combat.ShipAPI.getFleetCommander | ( | ) |
FleetMemberAPI com.fs.starfarer.api.combat.ShipAPI.getFleetMember | ( | ) |
String com.fs.starfarer.api.combat.ShipAPI.getFleetMemberId | ( | ) |
ID of FleetMemberAPI this Ship corresponds to. Can be null if there isn't one.
float com.fs.starfarer.api.combat.ShipAPI.getFluxBasedEnergyWeaponDamageMultiplier | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getFluxLevel | ( | ) |
FluxTrackerAPI com.fs.starfarer.api.combat.ShipAPI.getFluxTracker | ( | ) |
String com.fs.starfarer.api.combat.ShipAPI.getFluxVentTextureSheet | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getForceCarrierPullBackTime | ( | ) |
ShipAPI com.fs.starfarer.api.combat.ShipAPI.getForceCarrierTarget | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getForceCarrierTargetTime | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getFullTimeDeployed | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getHardFluxLevel | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getHullLevelAtDeployment | ( | ) |
HullSize com.fs.starfarer.api.combat.ShipAPI.getHullSize | ( | ) |
ShipHullSpecAPI com.fs.starfarer.api.combat.ShipAPI.getHullSpec | ( | ) |
String com.fs.starfarer.api.combat.ShipAPI.getHullStyleId | ( | ) |
String com.fs.starfarer.api.combat.ShipAPI.getId | ( | ) |
SpriteAPI com.fs.starfarer.api.combat.ShipAPI.getLargeHardpointCover | ( | ) |
SpriteAPI com.fs.starfarer.api.combat.ShipAPI.getLargeTurretCover | ( | ) |
List< FighterLaunchBayAPI > com.fs.starfarer.api.combat.ShipAPI.getLaunchBaysCopy | ( | ) |
CombatEngineLayers com.fs.starfarer.api.combat.ShipAPI.getLayer | ( | ) |
CombatListenerManagerAPI com.fs.starfarer.api.combat.ShipAPI.getListenerManager | ( | ) |
Will be null if no listeners added.
< T > List< T > com.fs.starfarer.api.combat.ShipAPI.getListeners | ( | Class< T > | c | ) |
float com.fs.starfarer.api.combat.ShipAPI.getLowestHullLevelReached | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getMassWithModules | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getMaxFlux | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getMaxSpeed | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getMaxSpeedWithoutBoost | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getMaxTurnRate | ( | ) |
SpriteAPI com.fs.starfarer.api.combat.ShipAPI.getMediumHardpointCover | ( | ) |
SpriteAPI com.fs.starfarer.api.combat.ShipAPI.getMediumTurretCover | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getMinFlux | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getMinFluxLevel | ( | ) |
Vector2f com.fs.starfarer.api.combat.ShipAPI.getModuleOffset | ( | ) |
Vector2f com.fs.starfarer.api.combat.ShipAPI.getMouseTarget | ( | ) |
MutableShipStatsAPI com.fs.starfarer.api.combat.ShipAPI.getMutableStats | ( | ) |
String com.fs.starfarer.api.combat.ShipAPI.getName | ( | ) |
int com.fs.starfarer.api.combat.ShipAPI.getNumFighterBays | ( | ) |
int com.fs.starfarer.api.combat.ShipAPI.getNumFlameouts | ( | ) |
Number of times a full engine flameout occurred during the last battle.
PersonAPI com.fs.starfarer.api.combat.ShipAPI.getOriginalCaptain | ( | ) |
int com.fs.starfarer.api.combat.ShipAPI.getOriginalOwner | ( | ) |
Color com.fs.starfarer.api.combat.ShipAPI.getOverloadColor | ( | ) |
Object com.fs.starfarer.api.combat.ShipAPI.getParamAboutToApplyDamage | ( | ) |
ShipAPI com.fs.starfarer.api.combat.ShipAPI.getParentStation | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getPeakTimeRemaining | ( | ) |
ShipSystemAPI com.fs.starfarer.api.combat.ShipAPI.getPhaseCloak | ( | ) |
Vector2f com.fs.starfarer.api.combat.ShipAPI.getRenderOffset | ( | ) |
Rendering offset for weapons and such, due to ship center changes on a ship piece. (0, 0) for an intact ship.
WeaponGroupAPI com.fs.starfarer.api.combat.ShipAPI.getSelectedGroupAPI | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getSharedFighterReplacementRate | ( | ) |
Vector2f com.fs.starfarer.api.combat.ShipAPI.getShieldCenterEvenIfNoShield | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getShieldRadiusEvenIfNoShield | ( | ) |
Vector2f com.fs.starfarer.api.combat.ShipAPI.getShieldTarget | ( | ) |
ShipAIPlugin com.fs.starfarer.api.combat.ShipAPI.getShipAI | ( | ) |
Does NOT return the same ai passed in to setShipAI(), but a wrapper around it. Can be used to save/restore the AI.
float com.fs.starfarer.api.combat.ShipAPI.getShipExplosionRadius | ( | ) |
ShipAPI com.fs.starfarer.api.combat.ShipAPI.getShipTarget | ( | ) |
SpriteAPI com.fs.starfarer.api.combat.ShipAPI.getSmallHardpointCover | ( | ) |
SpriteAPI com.fs.starfarer.api.combat.ShipAPI.getSmallTurretCover | ( | ) |
SpriteAPI com.fs.starfarer.api.combat.ShipAPI.getSpriteAPI | ( | ) |
A wrapper around the internal implementation of a sprite. Creates a new wrapper with every call, should store the return value and reuse it when possible instead of calling this method every time.
WeaponSlotAPI com.fs.starfarer.api.combat.ShipAPI.getStationSlot | ( | ) |
ShipSystemAPI com.fs.starfarer.api.combat.ShipAPI.getSystem | ( | ) |
Set< String > com.fs.starfarer.api.combat.ShipAPI.getTags | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getTimeDeployedForCRReduction | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getTimeDeployedUnderPlayerControl | ( | ) |
ShipSystemAPI com.fs.starfarer.api.combat.ShipAPI.getTravelDrive | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getTurnAcceleration | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getTurnDeceleration | ( | ) |
List< WeaponAPI > com.fs.starfarer.api.combat.ShipAPI.getUsableWeapons | ( | ) |
ShipVariantAPI com.fs.starfarer.api.combat.ShipAPI.getVariant | ( | ) |
Color com.fs.starfarer.api.combat.ShipAPI.getVentCoreColor | ( | ) |
Color com.fs.starfarer.api.combat.ShipAPI.getVentFringeColor | ( | ) |
BoundsAPI com.fs.starfarer.api.combat.ShipAPI.getVisualBounds | ( | ) |
Visual clipping bounds for pieces of ships. Returns null for intact ships.
WeaponGroupAPI com.fs.starfarer.api.combat.ShipAPI.getWeaponGroupFor | ( | WeaponAPI | weapon | ) |
List< WeaponGroupAPI > com.fs.starfarer.api.combat.ShipAPI.getWeaponGroupsCopy | ( | ) |
FighterWingAPI com.fs.starfarer.api.combat.ShipAPI.getWing | ( | ) |
float com.fs.starfarer.api.combat.ShipAPI.getWingCRAtDeployment | ( | ) |
ShipAPI com.fs.starfarer.api.combat.ShipAPI.getWingLeader | ( | ) |
Use getWing().getLeader() instead.
List< ShipAPI > com.fs.starfarer.api.combat.ShipAPI.getWingMembers | ( | ) |
Use getWing().getWingMembers() instead.
Object com.fs.starfarer.api.combat.ShipAPI.getWingToken | ( | ) |
Useful for determining whether fighters are part of the same wing.
void com.fs.starfarer.api.combat.ShipAPI.giveCommand | ( | ShipCommand | command, |
Object | param, | ||
int | groupNumber | ||
) |
Should only be used by a ShipAIPlugin.
command | type of the command. |
param | Generally a Vector2f with a "mouse" location. See ShipCommand.java for details. |
groupNumber | Only used for weapon-group-related commands. |
boolean com.fs.starfarer.api.combat.ShipAPI.hasLaunchBays | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.hasListener | ( | Object | listener | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.hasListenerOfClass | ( | Class<?> | c | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.hasRadarRibbonIcon | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.hasTag | ( | String | tag | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isAffectedByNebula | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isAlive | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isAlly | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isCapital | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isCruiser | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isDefenseDisabled | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isDestroyer | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isDirectRetreat | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isDoNotFlareEnginesWhenStrafingOrDecelerating | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isDrone | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isEngineBoostActive | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isFighter | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isFinishedLanding | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isForceHideFFOverlay | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isFrigate | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isHoldFire | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isHoldFireOneFrame | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isHulk | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isInsideNebula | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isInvalidTransferCommandTarget | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isJitterShields | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isLanding | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isLiftingOff | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isNonCombat | ( | boolean | considerOrders | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isPhased | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isPiece | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isPullBackFighters | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isRecentlyShotByPlayer | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isRenderEngines | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isRetreating | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isSelectableInWarroom | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isShipSystemDisabled | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isShipWithModules | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isShowModuleJitterUnder | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isShuttlePod | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isStation | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isStationModule | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isTargetable | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.isWingLeader | ( | ) |
boolean com.fs.starfarer.api.combat.ShipAPI.losesCRDuringCombat | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.makeLookDisabled | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.removeListener | ( | Object | listener | ) |
void com.fs.starfarer.api.combat.ShipAPI.removeListenerOfClass | ( | Class<?> | c | ) |
void com.fs.starfarer.api.combat.ShipAPI.removeWeaponFromGroups | ( | WeaponAPI | weapon | ) |
Removes weapon from any groups it's in. Should be used in conjunction with permanently disabling the weapon.
weapon |
void com.fs.starfarer.api.combat.ShipAPI.resetDefaultAI | ( | ) |
Sets the ship's AI to the core implementation.
void com.fs.starfarer.api.combat.ShipAPI.resetOriginalOwner | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.resetOverloadColor | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.setAffectedByNebula | ( | boolean | affectedByNebula | ) |
void com.fs.starfarer.api.combat.ShipAPI.setAlly | ( | boolean | ally | ) |
void com.fs.starfarer.api.combat.ShipAPI.setAlphaMult | ( | float | alphaMult | ) |
void com.fs.starfarer.api.combat.ShipAPI.setAnimatedLaunch | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.setApplyExtraAlphaToEngines | ( | boolean | applyExtraAlphaToEngines | ) |
void com.fs.starfarer.api.combat.ShipAPI.setCaptain | ( | PersonAPI | captain | ) |
void com.fs.starfarer.api.combat.ShipAPI.setCircularJitter | ( | boolean | circular | ) |
void com.fs.starfarer.api.combat.ShipAPI.setControlsLocked | ( | boolean | controlsLocked | ) |
void com.fs.starfarer.api.combat.ShipAPI.setCopyLocation | ( | Vector2f | loc, |
float | copyAlpha, | ||
float | copyFacing | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setCRAtDeployment | ( | float | cr | ) |
void com.fs.starfarer.api.combat.ShipAPI.setCurrentCR | ( | float | cr | ) |
void com.fs.starfarer.api.combat.ShipAPI.setDefenseDisabled | ( | boolean | defenseDisabled | ) |
void com.fs.starfarer.api.combat.ShipAPI.setDHullOverlay | ( | String | spriteName | ) |
void com.fs.starfarer.api.combat.ShipAPI.setDoNotFlareEnginesWhenStrafingOrDecelerating | ( | boolean | doNotFlare | ) |
void com.fs.starfarer.api.combat.ShipAPI.setDrone | ( | boolean | isDrone | ) |
void com.fs.starfarer.api.combat.ShipAPI.setExplosionFlashColorOverride | ( | Color | explosionFlashColorOverride | ) |
void com.fs.starfarer.api.combat.ShipAPI.setExplosionScale | ( | float | explosionScale | ) |
void com.fs.starfarer.api.combat.ShipAPI.setExplosionVelocityOverride | ( | Vector2f | explosionVelocityOverride | ) |
void com.fs.starfarer.api.combat.ShipAPI.setExtraAlphaMult | ( | float | transparency | ) |
void com.fs.starfarer.api.combat.ShipAPI.setExtraAlphaMult2 | ( | float | transparency | ) |
void com.fs.starfarer.api.combat.ShipAPI.setFighterTimeBeforeRefit | ( | float | fighterTimeBeforeRefit | ) |
void com.fs.starfarer.api.combat.ShipAPI.setFixedLocation | ( | Vector2f | fixedLocation | ) |
void com.fs.starfarer.api.combat.ShipAPI.setFluxVentTextureSheet | ( | String | textureId | ) |
void com.fs.starfarer.api.combat.ShipAPI.setForceCarrierPullBackTime | ( | float | forceCarrierPullBackTime | ) |
void com.fs.starfarer.api.combat.ShipAPI.setForceCarrierTarget | ( | ShipAPI | forceCarrierTarget | ) |
void com.fs.starfarer.api.combat.ShipAPI.setForceCarrierTargetTime | ( | float | forceCarrierTargetTime | ) |
void com.fs.starfarer.api.combat.ShipAPI.setForceHideFFOverlay | ( | boolean | forceHideFFOverlay | ) |
void com.fs.starfarer.api.combat.ShipAPI.setHeavyDHullOverlay | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.setHitpoints | ( | float | value | ) |
Implements com.fs.starfarer.api.combat.CombatEntityAPI.
void com.fs.starfarer.api.combat.ShipAPI.setHoldFire | ( | boolean | holdFire | ) |
void com.fs.starfarer.api.combat.ShipAPI.setHoldFireOneFrame | ( | boolean | holdFireOneFrame | ) |
void com.fs.starfarer.api.combat.ShipAPI.setHulk | ( | boolean | isHulk | ) |
void com.fs.starfarer.api.combat.ShipAPI.setHullSize | ( | HullSize | hullSize | ) |
void com.fs.starfarer.api.combat.ShipAPI.setInsideNebula | ( | boolean | isInsideNebula | ) |
void com.fs.starfarer.api.combat.ShipAPI.setInvalidTransferCommandTarget | ( | boolean | invalidTransferCommandTarget | ) |
void com.fs.starfarer.api.combat.ShipAPI.setJitter | ( | Object | source, |
Color | color, | ||
float | intensity, | ||
int | copies, | ||
float | minRange, | ||
float | range | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setJitter | ( | Object | source, |
Color | color, | ||
float | intensity, | ||
int | copies, | ||
float | range | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setJitterShields | ( | boolean | jitterShields | ) |
void com.fs.starfarer.api.combat.ShipAPI.setJitterUnder | ( | Object | source, |
Color | color, | ||
float | intensity, | ||
int | copies, | ||
float | minRange, | ||
float | range | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setJitterUnder | ( | Object | source, |
Color | color, | ||
float | intensity, | ||
int | copies, | ||
float | range | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setLaunchingShip | ( | ShipAPI | launchingShip | ) |
void com.fs.starfarer.api.combat.ShipAPI.setLayer | ( | CombatEngineLayers | layer | ) |
void com.fs.starfarer.api.combat.ShipAPI.setLightDHullOverlay | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.setMaxHitpoints | ( | float | maxArmor | ) |
void com.fs.starfarer.api.combat.ShipAPI.setMediumDHullOverlay | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.setName | ( | String | name | ) |
void com.fs.starfarer.api.combat.ShipAPI.setNextHitHullDamageThresholdMult | ( | float | threshold, |
float | multBeyondThreshold | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setOriginalOwner | ( | int | originalOwner | ) |
void com.fs.starfarer.api.combat.ShipAPI.setOverloadColor | ( | Color | color | ) |
void com.fs.starfarer.api.combat.ShipAPI.setParamAboutToApplyDamage | ( | Object | param | ) |
void com.fs.starfarer.api.combat.ShipAPI.setParentStation | ( | ShipAPI | station | ) |
void com.fs.starfarer.api.combat.ShipAPI.setPhased | ( | boolean | phased | ) |
void com.fs.starfarer.api.combat.ShipAPI.setPullBackFighters | ( | boolean | pullBackFighters | ) |
void com.fs.starfarer.api.combat.ShipAPI.setRenderBounds | ( | boolean | renderBounds | ) |
void com.fs.starfarer.api.combat.ShipAPI.setRenderEngines | ( | boolean | renderEngines | ) |
void com.fs.starfarer.api.combat.ShipAPI.setRetreating | ( | boolean | retreating, |
boolean | direct | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setShield | ( | ShieldType | type, |
float | shieldUpkeep, | ||
float | shieldEfficiency, | ||
float | arc | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setShieldTargetOverride | ( | float | x, |
float | y | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setShipAI | ( | ShipAIPlugin | ai | ) |
Only should be called if the AI needs to be changed dynamically. Otherwise, use ModPlugin.pickShipAI() instead.
ai |
void com.fs.starfarer.api.combat.ShipAPI.setShipSystemDisabled | ( | boolean | systemDisabled | ) |
void com.fs.starfarer.api.combat.ShipAPI.setShipTarget | ( | ShipAPI | ship | ) |
void com.fs.starfarer.api.combat.ShipAPI.setShipWithModules | ( | boolean | isShipWithModules | ) |
void com.fs.starfarer.api.combat.ShipAPI.setShowModuleJitterUnder | ( | boolean | showModuleJitterUnder | ) |
False by default. May need to set to true for ships with large decorative weapons etc.
showModuleJitterUnder |
void com.fs.starfarer.api.combat.ShipAPI.setSprite | ( | SpriteAPI | sprite | ) |
void com.fs.starfarer.api.combat.ShipAPI.setSprite | ( | String | category, |
String | key | ||
) |
Note: If also changing bounds, make sure they are still within the armor grid of the ship, which is determined by the original sprite.
category | under "graphics" in settings.json |
key | id under category. |
void com.fs.starfarer.api.combat.ShipAPI.setStation | ( | boolean | isStation | ) |
void com.fs.starfarer.api.combat.ShipAPI.setStationSlot | ( | WeaponSlotAPI | stationSlot | ) |
void com.fs.starfarer.api.combat.ShipAPI.setTimeDeployed | ( | float | timeDeployed | ) |
void com.fs.starfarer.api.combat.ShipAPI.setVariantForHullmodCheckOnly | ( | ShipVariantAPI | variant | ) |
void com.fs.starfarer.api.combat.ShipAPI.setVentCoreColor | ( | Color | color | ) |
void com.fs.starfarer.api.combat.ShipAPI.setVentFringeColor | ( | Color | color | ) |
void com.fs.starfarer.api.combat.ShipAPI.setWeaponGlow | ( | float | glow, |
Color | color, | ||
EnumSet< WeaponType > | types | ||
) |
void com.fs.starfarer.api.combat.ShipAPI.setWing | ( | FighterWingAPI | wing | ) |
ShipAPI com.fs.starfarer.api.combat.ShipAPI.splitShip | ( | ) |
Should be called on a ship that's already a hulk. Will return the smaller of the two pieces (the current ship becomes the larger piece), or null if it did not find a way to split the ship. Calling the method again in this case may result in a valid split being found.
void com.fs.starfarer.api.combat.ShipAPI.syncWeaponDecalsWithArmorDamage | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.syncWithArmorGridState | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.toggleTravelDrive | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.turnOffTravelDrive | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.turnOnTravelDrive | ( | ) |
void com.fs.starfarer.api.combat.ShipAPI.turnOnTravelDrive | ( | float | dur | ) |
void com.fs.starfarer.api.combat.ShipAPI.useSystem | ( | ) |
The ship will try to use its system next frame. Equivalent to the player pressing the "use system" button while controlling a ship. So, it may fail for various reasons - out of ammo, not enough flux, overloaded, etc.