|
Starsector API
|
Public Member Functions | |
| boolean | isInCampaign () |
| boolean | isInCampaignSim () |
| CombatUIAPI | getCombatUI () |
| void | setHyperspaceMode () |
| List< BattleObjectiveAPI > | getAllObjectives () |
| List< ShipAPI > | getAllShips () |
| List< BattleObjectiveAPI > | getObjectives () |
| List< ShipAPI > | getShips () |
| List< MissileAPI > | getMissiles () |
| List< CombatEntityAPI > | getAsteroids () |
| List< BeamAPI > | getBeams () |
| List< DamagingProjectileAPI > | getProjectiles () |
| boolean | isEntityInPlay (CombatEntityAPI entity) |
| FogOfWarAPI | getFogOfWar (int owner) |
| void | removeEntity (CombatEntityAPI entity) |
| CombatFleetManagerAPI | getFleetManager (FleetSide side) |
| CombatFleetManagerAPI | getFleetManager (int owner) |
| ShipAPI | getPlayerShip () |
| boolean | isPaused () |
| void | endCombat (float delay) |
| void | setDoNotEndCombat (boolean doNotEndCombat) |
| void | endCombat (float delay, FleetSide winner) |
| ViewportAPI | getViewport () |
| void | applyDamage (CombatEntityAPI entity, Vector2f point, float damageAmount, DamageType damageType, float empAmount, boolean bypassShields, boolean dealsSoftFlux, Object source, boolean playSound) |
| void | applyDamage (CombatEntityAPI entity, Vector2f point, float damageAmount, DamageType damageType, float empAmount, boolean bypassShields, boolean dealsSoftFlux, Object source) |
| void | applyDamage (Object damageModifierParam, CombatEntityAPI entity, Vector2f point, float damageAmount, DamageType damageType, float empAmount, boolean bypassShields, boolean dealsSoftFlux, Object source, boolean playSound) |
| void | addHitParticle (Vector2f loc, Vector2f vel, float size, float brightness, float duration, Color color) |
| void | addSmoothParticle (Vector2f loc, Vector2f vel, float size, float brightness, float duration, Color color) |
| void | addSmokeParticle (Vector2f loc, Vector2f vel, float size, float opacity, float duration, Color color) |
| void | spawnExplosion (Vector2f loc, Vector2f vel, Color color, float size, float maxDuration) |
| CombatEntityAPI | spawnAsteroid (int size, float x, float y, float dx, float dy) |
| void | addFloatingText (Vector2f loc, String text, float size, Color color, CombatEntityAPI attachedTo, float flashFrequency, float flashDuration) |
| void | addFloatingDamageText (Vector2f loc, float damage, Color color, CombatEntityAPI attachedTo, CombatEntityAPI damageSource) |
| CombatEntityAPI | spawnProjectile (ShipAPI ship, WeaponAPI weapon, String weaponId, Vector2f point, float angle, Vector2f shipVelocity) |
| EmpArcEntityAPI | spawnEmpArc (ShipAPI damageSource, Vector2f point, CombatEntityAPI pointAnchor, CombatEntityAPI empTargetEntity, DamageType damageType, float damAmount, float empDamAmount, float maxRange, String impactSoundId, float thickness, Color fringe, Color core) |
| EmpArcEntityAPI | spawnEmpArc (ShipAPI damageSource, Vector2f point, CombatEntityAPI pointAnchor, CombatEntityAPI empTargetEntity, DamageType damageType, float damAmount, float empDamAmount, float maxRange, String impactSoundId, float thickness, Color fringe, Color core, EmpArcParams params) |
| EmpArcEntityAPI | spawnEmpArcPierceShields (ShipAPI damageSource, Vector2f point, CombatEntityAPI pointAnchor, CombatEntityAPI empTargetEntity, DamageType damageType, float damAmount, float empDamAmount, float maxRange, String impactSoundId, float thickness, Color fringe, Color core) |
| EmpArcEntityAPI | spawnEmpArcPierceShields (ShipAPI damageSource, Vector2f point, CombatEntityAPI pointAnchor, CombatEntityAPI empTargetEntity, DamageType damageType, float damAmount, float empDamAmount, float maxRange, String impactSoundId, float thickness, Color fringe, Color core, EmpArcParams params) |
| float | getMapWidth () |
| float | getMapHeight () |
| BattleCreationContext | getContext () |
| float | getTotalElapsedTime (boolean includePaused) |
| float | getElapsedInLastFrame () |
| void | addPlugin (EveryFrameCombatPlugin plugin) |
| void | removePlugin (EveryFrameCombatPlugin plugin) |
| boolean | isSimulation () |
| boolean | isMission () |
| String | getMissionId () |
| void | setPlayerShipExternal (ShipAPI ship) |
| boolean | isUIShowingDialog () |
| boolean | isUIShowingHUD () |
| boolean | isUIAutopilotOn () |
| float | getElapsedInContactWithEnemy () |
| boolean | isFleetsInContact () |
| void | setSideDeploymentOverrideSide (FleetSide sideDeploymentOverrideSide) |
| Map< String, Object > | getCustomData () |
| void | maintainStatusForPlayerShip (Object key, String spriteName, String title, String data, boolean isDebuff) |
| void | setPaused (boolean paused) |
| boolean | playerHasNonAllyReserves () |
| boolean | playerHasAllyReserves () |
| CombatDamageData | getDamageData () |
| MutableStat | getTimeMult () |
| void | setMaxFleetPoints (FleetSide side, int fleetPoints) |
| CombatNebulaAPI | getNebula () |
| boolean | isInFastTimeAdvance () |
| CombatEntityAPI | spawnProjectile (ShipAPI ship, WeaponAPI weapon, String weaponId, String projSpecId, Vector2f point, float angle, Vector2f shipVelocity) |
| void | updateStationModuleLocations (ShipAPI station) |
| CollisionGridAPI | getAllObjectGrid () |
| CollisionGridAPI | getShipGrid () |
| CollisionGridAPI | getMissileGrid () |
| CollisionGridAPI | getAsteroidGrid () |
| DamagingProjectileAPI | spawnDamagingExplosion (DamagingExplosionSpec spec, ShipAPI source, Vector2f location) |
| DamagingProjectileAPI | spawnDamagingExplosion (DamagingExplosionSpec spec, ShipAPI source, Vector2f location, boolean canDamageSource) |
| int | getWinningSideId () |
| boolean | isCombatOver () |
| void | removeObject (Object object) |
| CombatEntityAPI | addLayeredRenderingPlugin (CombatLayeredRenderingPlugin plugin) |
| boolean | isEnemyInFullRetreat () |
| boolean | isMissileAlive (MissileAPI missile) |
| void | spawnMuzzleFlashOrSmoke (ShipAPI ship, WeaponSlotAPI slot, WeaponSpecAPI spec, int barrel, float targetAngle) |
| CollisionGridAPI | getAiGridMissiles () |
| CollisionGridAPI | getAiGridShips () |
| CollisionGridAPI | getAiGridAsteroids () |
| boolean | isAwareOf (int owner, CombatEntityAPI other) |
| void | headInDirectionWithoutTurning (MissileAPI missile, float desiredHeading, float desiredSpeed) |
| void | headInDirectionWithoutTurning (ShipAPI ship, float desiredHeading, float desiredSpeed) |
| Vector2f | getAimPointWithLeadForAutofire (CombatEntityAPI from, float accuracyFactor, CombatEntityAPI to, float projSpeed) |
| CombatListenerManagerAPI | getListenerManager () |
| void | applyDamageModifiersToSpawnedProjectileWithNullWeapon (ShipAPI source, WeaponType type, boolean isBeam, DamageAPI damage) |
| void | addHitParticle (Vector2f loc, Vector2f vel, float size, float brightness, float durationIn, float totalDuration, Color color) |
| void | addHitParticle (Vector2f loc, Vector2f vel, float size, float brightness, Color color) |
| EmpArcEntityAPI | spawnEmpArcVisual (Vector2f from, CombatEntityAPI fromAnchor, Vector2f to, CombatEntityAPI toAnchor, float thickness, Color fringe, Color core) |
| EmpArcEntityAPI | spawnEmpArcVisual (Vector2f from, CombatEntityAPI fromAnchor, Vector2f to, CombatEntityAPI toAnchor, float thickness, Color fringe, Color core, EmpArcParams params) |
| void | addSmoothParticle (Vector2f loc, Vector2f vel, float size, float brightness, float rampUpFraction, float totalDuration, Color color) |
| void | addNegativeParticle (Vector2f loc, Vector2f vel, float size, float rampUpFraction, float totalDuration, Color color) |
| void | addNebulaParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color) |
| void | addNegativeNebulaParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color) |
| void | addNebulaSmokeParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color) |
| boolean | hasAttachedFloaty (CombatEntityAPI entity) |
| void | addNebulaParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color, boolean expandAsSqrt) |
| void | addSwirlyNebulaParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color, boolean expandAsSqrt) |
| void | addNegativeSwirlyNebulaParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color) |
| boolean | isInPlay (Object object) |
| void | setCombatNotOverForAtLeast (float seconds) |
| void | setCombatNotOverFor (float seconds) |
| float | getCombatNotOverFor () |
| void | setCustomExit (String buttonTitle, String confirmString) |
| String | getCustomExitButtonTitle () |
| String | getCustomExitButtonConfirmString () |
| void | addFloatingTextAlways (Vector2f loc, String text, float size, Color color, CombatEntityAPI attachedTo, float flashFrequency, float flashDuration, float durInPlace, float durFloatingUp, float durFadingOut, float baseAlpha) |
| WeaponAPI | createFakeWeapon (ShipAPI ship, String weaponId) |
| ShipAPI | getShipPlayerIsTransferringCommandFrom () |
| ShipAPI | getShipPlayerIsTransferringCommandTo () |
| ShipAPI | getShipPlayerLastTransferredCommandTo () |
| ShipAPI | createFXDrone (ShipVariantAPI variant) |
| void | addEntity (CombatEntityAPI entity) |
| void | addNebulaSmoothParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color) |
| void | addNebulaSmoothParticle (Vector2f loc, Vector2f vel, float size, float endSizeMult, float rampUpFraction, float fullBrightnessFraction, float totalDuration, Color color, boolean expandAsSqrt) |
| Color | getBackgroundColor () |
| void | setBackgroundColor (Color backgroundColor) |
| boolean | isBackgroundGlowColorNonAdditive () |
| void | setBackgroundGlowColorNonAdditive (boolean backgroundGlowColorNonAdditive) |
| void | setBackgroundGlowColor (Color backgroundGlowColor) |
| Color | getBackgroundGlowColor () |
| boolean | isRenderStarfield () |
| void | setRenderStarfield (boolean renderStarfield) |
| void | setShipPlayerLastTransferredCommandTo (ShipAPI ship) |
| void | spawnMuzzleFlashOrSmoke (ShipAPI ship, Vector2f point, WeaponSpecAPI spec, float targetAngle) |
| boolean | isInMissionSim () |
| boolean | isShipAlive (ShipAPI ship) |
| void | spawnDebrisSmall (Vector2f loc, Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation) |
| void | spawnDebrisMedium (Vector2f loc, Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation) |
| void | spawnDebrisLarge (Vector2f loc, Vector2f vel, int num, float facing, float spread, float minVel, float velRange, float maxRotation) |
| void | addFloatingDamageText (Vector2f loc, float damage, float spread, Color color, CombatEntityAPI to, CombatEntityAPI source) |
| MissileAIPlugin | createProximityFuseAI (MissileAPI missile) |
| String | getBackgroundSpriteName () |
| boolean | isInEngine (ShipAPI ship) |
| boolean | hasPluginOfClass (Class c) |
| void | applyImpact (Vector2f vel, float impact, CombatEntityAPI target, Vector2f point) |
| void | playShipExplosionSound (ShipAPI ship) |
| CombatEntityAPI | spawnAsteroid (String spriteName, float x, float y, float dx, float dy, boolean fromRing) |
Copyright 2012 Fractal Softworks, LLC
Definition at line 24 of file CombatEngineAPI.java.
| void com.fs.starfarer.api.combat.CombatEngineAPI.addEntity | ( | CombatEntityAPI | entity | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addFloatingDamageText | ( | Vector2f | loc, |
| float | damage, | ||
| Color | color, | ||
| CombatEntityAPI | attachedTo, | ||
| CombatEntityAPI | damageSource ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addFloatingDamageText | ( | Vector2f | loc, |
| float | damage, | ||
| float | spread, | ||
| Color | color, | ||
| CombatEntityAPI | to, | ||
| CombatEntityAPI | source ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addFloatingText | ( | Vector2f | loc, |
| String | text, | ||
| float | size, | ||
| Color | color, | ||
| CombatEntityAPI | attachedTo, | ||
| float | flashFrequency, | ||
| float | flashDuration ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addFloatingTextAlways | ( | Vector2f | loc, |
| String | text, | ||
| float | size, | ||
| Color | color, | ||
| CombatEntityAPI | attachedTo, | ||
| float | flashFrequency, | ||
| float | flashDuration, | ||
| float | durInPlace, | ||
| float | durFloatingUp, | ||
| float | durFadingOut, | ||
| float | baseAlpha ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addHitParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | brightness, | ||
| Color | color ) |
Duration gets auto-computed.
| loc | |
| vel | |
| size | |
| brightness | |
| color |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addHitParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | brightness, | ||
| float | duration, | ||
| Color | color ) |
Particle with a somewhat brighter middle.
| brightness | from 0 to 1 |
| duration | in seconds |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addHitParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | brightness, | ||
| float | durationIn, | ||
| float | totalDuration, | ||
| Color | color ) |
| CombatEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.addLayeredRenderingPlugin | ( | CombatLayeredRenderingPlugin | plugin | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNebulaParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNebulaParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color, | ||
| boolean | expandAsSqrt ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNebulaSmokeParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNebulaSmoothParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNebulaSmoothParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color, | ||
| boolean | expandAsSqrt ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNegativeNebulaParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNegativeParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | rampUpFraction, | ||
| float | totalDuration, | ||
| Color | color ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addNegativeSwirlyNebulaParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addPlugin | ( | EveryFrameCombatPlugin | plugin | ) |
Plugin has its init method called inside this method.
| plugin |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addSmokeParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | opacity, | ||
| float | duration, | ||
| Color | color ) |
Opaque smoke particle.
| brightness | from 0 to 1 |
| duration | in seconds |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addSmoothParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | brightness, | ||
| float | duration, | ||
| Color | color ) |
Standard glowy particle.
| brightness | from 0 to 1 |
| duration | in seconds |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addSmoothParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | brightness, | ||
| float | rampUpFraction, | ||
| float | totalDuration, | ||
| Color | color ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.addSwirlyNebulaParticle | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| float | size, | ||
| float | endSizeMult, | ||
| float | rampUpFraction, | ||
| float | fullBrightnessFraction, | ||
| float | totalDuration, | ||
| Color | color, | ||
| boolean | expandAsSqrt ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.applyDamage | ( | CombatEntityAPI | entity, |
| Vector2f | point, | ||
| float | damageAmount, | ||
| DamageType | damageType, | ||
| float | empAmount, | ||
| boolean | bypassShields, | ||
| boolean | dealsSoftFlux, | ||
| Object | source ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.applyDamage | ( | CombatEntityAPI | entity, |
| Vector2f | point, | ||
| float | damageAmount, | ||
| DamageType | damageType, | ||
| float | empAmount, | ||
| boolean | bypassShields, | ||
| boolean | dealsSoftFlux, | ||
| Object | source, | ||
| boolean | playSound ) |
| entity | |
| point | Location the damage is dealt at, in absolute engine coordinates (i.e. not relative to the ship). MUST fall within the sprite of a ship, given its current location and facing, for armor to properly be taken into account. |
| damageAmount | |
| damageType | |
| empAmount | |
| bypassShields | Whether shields are ignored completely. |
| dealsSoftFlux | Whether damage dealt to shields results in soft flux. |
| source | Should be a ShipAPI if the damage ultimately attributed to it. Can also be null. |
| playSound | Whether a sound based on the damage dealt should be played. |
| void com.fs.starfarer.api.combat.CombatEngineAPI.applyDamage | ( | Object | damageModifierParam, |
| CombatEntityAPI | entity, | ||
| Vector2f | point, | ||
| float | damageAmount, | ||
| DamageType | damageType, | ||
| float | empAmount, | ||
| boolean | bypassShields, | ||
| boolean | dealsSoftFlux, | ||
| Object | source, | ||
| boolean | playSound ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.applyDamageModifiersToSpawnedProjectileWithNullWeapon | ( | ShipAPI | source, |
| WeaponType | type, | ||
| boolean | isBeam, | ||
| DamageAPI | damage ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.applyImpact | ( | Vector2f | vel, |
| float | impact, | ||
| CombatEntityAPI | target, | ||
| Vector2f | point ) |
| WeaponAPI com.fs.starfarer.api.combat.CombatEngineAPI.createFakeWeapon | ( | ShipAPI | ship, |
| String | weaponId ) |
| ShipAPI com.fs.starfarer.api.combat.CombatEngineAPI.createFXDrone | ( | ShipVariantAPI | variant | ) |
| MissileAIPlugin com.fs.starfarer.api.combat.CombatEngineAPI.createProximityFuseAI | ( | MissileAPI | missile | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.endCombat | ( | float | delay | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.endCombat | ( | float | delay, |
| FleetSide | winner ) |
| CollisionGridAPI com.fs.starfarer.api.combat.CombatEngineAPI.getAiGridAsteroids | ( | ) |
| CollisionGridAPI com.fs.starfarer.api.combat.CombatEngineAPI.getAiGridMissiles | ( | ) |
| CollisionGridAPI com.fs.starfarer.api.combat.CombatEngineAPI.getAiGridShips | ( | ) |
| Vector2f com.fs.starfarer.api.combat.CombatEngineAPI.getAimPointWithLeadForAutofire | ( | CombatEntityAPI | from, |
| float | accuracyFactor, | ||
| CombatEntityAPI | to, | ||
| float | projSpeed ) |
accuracyFactor: 1 = best accuracy, >1 (up to around 2 at most normally) poor accuracy, <1 = leading target too much, not used.
| from | |
| accuracyFactor | |
| to | |
| projSpeed |
| CollisionGridAPI com.fs.starfarer.api.combat.CombatEngineAPI.getAllObjectGrid | ( | ) |
All combat entities.
| List< BattleObjectiveAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getAllObjectives | ( | ) |
Use getObjectives() instead.
| List< ShipAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getAllShips | ( | ) |
Use getShips() instead.
| CollisionGridAPI com.fs.starfarer.api.combat.CombatEngineAPI.getAsteroidGrid | ( | ) |
Asteroids only.
| List< CombatEntityAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getAsteroids | ( | ) |
| Color com.fs.starfarer.api.combat.CombatEngineAPI.getBackgroundColor | ( | ) |
| Color com.fs.starfarer.api.combat.CombatEngineAPI.getBackgroundGlowColor | ( | ) |
| String com.fs.starfarer.api.combat.CombatEngineAPI.getBackgroundSpriteName | ( | ) |
| List< BeamAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getBeams | ( | ) |
| float com.fs.starfarer.api.combat.CombatEngineAPI.getCombatNotOverFor | ( | ) |
| CombatUIAPI com.fs.starfarer.api.combat.CombatEngineAPI.getCombatUI | ( | ) |
| BattleCreationContext com.fs.starfarer.api.combat.CombatEngineAPI.getContext | ( | ) |
BattleCreationContext used to initialize this battle.
| Map< String, Object > com.fs.starfarer.api.combat.CombatEngineAPI.getCustomData | ( | ) |
| String com.fs.starfarer.api.combat.CombatEngineAPI.getCustomExitButtonConfirmString | ( | ) |
| String com.fs.starfarer.api.combat.CombatEngineAPI.getCustomExitButtonTitle | ( | ) |
| CombatDamageData com.fs.starfarer.api.combat.CombatEngineAPI.getDamageData | ( | ) |
| float com.fs.starfarer.api.combat.CombatEngineAPI.getElapsedInContactWithEnemy | ( | ) |
Time elapsed while both sides can see at least one enemy ship.
| float com.fs.starfarer.api.combat.CombatEngineAPI.getElapsedInLastFrame | ( | ) |
Does not return 0 if the game is paused; actually the current frame.
| CombatFleetManagerAPI com.fs.starfarer.api.combat.CombatEngineAPI.getFleetManager | ( | FleetSide | side | ) |
| CombatFleetManagerAPI com.fs.starfarer.api.combat.CombatEngineAPI.getFleetManager | ( | int | owner | ) |
| FogOfWarAPI com.fs.starfarer.api.combat.CombatEngineAPI.getFogOfWar | ( | int | owner | ) |
| CombatListenerManagerAPI com.fs.starfarer.api.combat.CombatEngineAPI.getListenerManager | ( | ) |
| float com.fs.starfarer.api.combat.CombatEngineAPI.getMapHeight | ( | ) |
| float com.fs.starfarer.api.combat.CombatEngineAPI.getMapWidth | ( | ) |
| CollisionGridAPI com.fs.starfarer.api.combat.CombatEngineAPI.getMissileGrid | ( | ) |
Missiles only.
| List< MissileAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getMissiles | ( | ) |
| String com.fs.starfarer.api.combat.CombatEngineAPI.getMissionId | ( | ) |
| CombatNebulaAPI com.fs.starfarer.api.combat.CombatEngineAPI.getNebula | ( | ) |
| List< BattleObjectiveAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getObjectives | ( | ) |
| ShipAPI com.fs.starfarer.api.combat.CombatEngineAPI.getPlayerShip | ( | ) |
| List< DamagingProjectileAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getProjectiles | ( | ) |
Includes missiles.
| CollisionGridAPI com.fs.starfarer.api.combat.CombatEngineAPI.getShipGrid | ( | ) |
Ships only.
| ShipAPI com.fs.starfarer.api.combat.CombatEngineAPI.getShipPlayerIsTransferringCommandFrom | ( | ) |
| ShipAPI com.fs.starfarer.api.combat.CombatEngineAPI.getShipPlayerIsTransferringCommandTo | ( | ) |
| ShipAPI com.fs.starfarer.api.combat.CombatEngineAPI.getShipPlayerLastTransferredCommandTo | ( | ) |
| List< ShipAPI > com.fs.starfarer.api.combat.CombatEngineAPI.getShips | ( | ) |
| MutableStat com.fs.starfarer.api.combat.CombatEngineAPI.getTimeMult | ( | ) |
| float com.fs.starfarer.api.combat.CombatEngineAPI.getTotalElapsedTime | ( | boolean | includePaused | ) |
| ViewportAPI com.fs.starfarer.api.combat.CombatEngineAPI.getViewport | ( | ) |
| int com.fs.starfarer.api.combat.CombatEngineAPI.getWinningSideId | ( | ) |
0 = player, 1 = enemy, 2 = player allies, no player ships left.
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.hasAttachedFloaty | ( | CombatEntityAPI | entity | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.hasPluginOfClass | ( | Class | c | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.headInDirectionWithoutTurning | ( | MissileAPI | missile, |
| float | desiredHeading, | ||
| float | desiredSpeed ) |
Gives strafe left/right and accelerate forward/backward/decelerate commands to accomplish this.
| missile | |
| desiredHeading | |
| desiredSpeed |
| void com.fs.starfarer.api.combat.CombatEngineAPI.headInDirectionWithoutTurning | ( | ShipAPI | ship, |
| float | desiredHeading, | ||
| float | desiredSpeed ) |
Gives strafe left/right and accelerate forward/backward/decelerate commands to accomplish this.
| ship | |
| desiredHeading | |
| desiredSpeed |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isAwareOf | ( | int | owner, |
| CombatEntityAPI | other ) |
Visible (i.e. not under fog) or recently seen.
| owner | |
| other |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isBackgroundGlowColorNonAdditive | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isCombatOver | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isEnemyInFullRetreat | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isEntityInPlay | ( | CombatEntityAPI | entity | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isFleetsInContact | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isInCampaign | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isInCampaignSim | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isInEngine | ( | ShipAPI | ship | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isInFastTimeAdvance | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isInMissionSim | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isInPlay | ( | Object | object | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isMissileAlive | ( | MissileAPI | missile | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isMission | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isPaused | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isRenderStarfield | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isShipAlive | ( | ShipAPI | ship | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isSimulation | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isUIAutopilotOn | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isUIShowingDialog | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.isUIShowingHUD | ( | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.maintainStatusForPlayerShip | ( | Object | key, |
| String | spriteName, | ||
| String | title, | ||
| String | data, | ||
| boolean | isDebuff ) |
In the status list above the left side of the ship info widget in the bottom left.
| key | |
| spriteName | |
| title | |
| data | |
| isDebuff |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.playerHasAllyReserves | ( | ) |
| boolean com.fs.starfarer.api.combat.CombatEngineAPI.playerHasNonAllyReserves | ( | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.playShipExplosionSound | ( | ShipAPI | ship | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.removeEntity | ( | CombatEntityAPI | entity | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.removeObject | ( | Object | object | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.removePlugin | ( | EveryFrameCombatPlugin | plugin | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setBackgroundColor | ( | Color | backgroundColor | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setBackgroundGlowColor | ( | Color | backgroundGlowColor | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setBackgroundGlowColorNonAdditive | ( | boolean | backgroundGlowColorNonAdditive | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setCombatNotOverFor | ( | float | seconds | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setCombatNotOverForAtLeast | ( | float | seconds | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setCustomExit | ( | String | buttonTitle, |
| String | confirmString ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setDoNotEndCombat | ( | boolean | doNotEndCombat | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setHyperspaceMode | ( | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setMaxFleetPoints | ( | FleetSide | side, |
| int | fleetPoints ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setPaused | ( | boolean | paused | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setPlayerShipExternal | ( | ShipAPI | ship | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setRenderStarfield | ( | boolean | renderStarfield | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setShipPlayerLastTransferredCommandTo | ( | ShipAPI | ship | ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.setSideDeploymentOverrideSide | ( | FleetSide | sideDeploymentOverrideSide | ) |
| CombatEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnAsteroid | ( | int | size, |
| float | x, | ||
| float | y, | ||
| float | dx, | ||
| float | dy ) |
| size | 0, 1, 2, or 3, with 3 being the largest. |
| x | location x |
| y | location y |
| dx | velocity x |
| dy | velocity y |
| CombatEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnAsteroid | ( | String | spriteName, |
| float | x, | ||
| float | y, | ||
| float | dx, | ||
| float | dy, | ||
| boolean | fromRing ) |
| DamagingProjectileAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnDamagingExplosion | ( | DamagingExplosionSpec | spec, |
| ShipAPI | source, | ||
| Vector2f | location ) |
| DamagingProjectileAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnDamagingExplosion | ( | DamagingExplosionSpec | spec, |
| ShipAPI | source, | ||
| Vector2f | location, | ||
| boolean | canDamageSource ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.spawnDebrisLarge | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| int | num, | ||
| float | facing, | ||
| float | spread, | ||
| float | minVel, | ||
| float | velRange, | ||
| float | maxRotation ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.spawnDebrisMedium | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| int | num, | ||
| float | facing, | ||
| float | spread, | ||
| float | minVel, | ||
| float | velRange, | ||
| float | maxRotation ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.spawnDebrisSmall | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| int | num, | ||
| float | facing, | ||
| float | spread, | ||
| float | minVel, | ||
| float | velRange, | ||
| float | maxRotation ) |
| EmpArcEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnEmpArc | ( | ShipAPI | damageSource, |
| Vector2f | point, | ||
| CombatEntityAPI | pointAnchor, | ||
| CombatEntityAPI | empTargetEntity, | ||
| DamageType | damageType, | ||
| float | damAmount, | ||
| float | empDamAmount, | ||
| float | maxRange, | ||
| String | impactSoundId, | ||
| float | thickness, | ||
| Color | fringe, | ||
| Color | core ) |
| damageSource | Ship that's ultimately responsible for dealing the damage of this EMP arc. Can be null. |
| point | starting point of the EMP arc, in absolute engine coordinates. |
| pointAnchor | The entity the starting point should move together with, if any. |
| empTargetEntity | Target of the EMP arc. If it's a ship, it will randomly pick an engine nozzle/weapon to arc to. Can also pass in a custom class implementing CombatEntityAPI to visually target the EMP at a specific location (and not do any damage). |
| damageType | |
| damAmount | |
| empDamAmount | |
| maxRange | Maximum range the arc can reach (useful for confining EMP arc targets to the area near point) |
| impactSoundId | Can be null. |
| thickness | Thickness of the arc (visual). |
| fringe | |
| core |
| EmpArcEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnEmpArc | ( | ShipAPI | damageSource, |
| Vector2f | point, | ||
| CombatEntityAPI | pointAnchor, | ||
| CombatEntityAPI | empTargetEntity, | ||
| DamageType | damageType, | ||
| float | damAmount, | ||
| float | empDamAmount, | ||
| float | maxRange, | ||
| String | impactSoundId, | ||
| float | thickness, | ||
| Color | fringe, | ||
| Color | core, | ||
| EmpArcParams | params ) |
| EmpArcEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnEmpArcPierceShields | ( | ShipAPI | damageSource, |
| Vector2f | point, | ||
| CombatEntityAPI | pointAnchor, | ||
| CombatEntityAPI | empTargetEntity, | ||
| DamageType | damageType, | ||
| float | damAmount, | ||
| float | empDamAmount, | ||
| float | maxRange, | ||
| String | impactSoundId, | ||
| float | thickness, | ||
| Color | fringe, | ||
| Color | core ) |
Same as spawnEmpArc, but goes through shields if they're blocking the line from the point to the chosen target.
| EmpArcEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnEmpArcPierceShields | ( | ShipAPI | damageSource, |
| Vector2f | point, | ||
| CombatEntityAPI | pointAnchor, | ||
| CombatEntityAPI | empTargetEntity, | ||
| DamageType | damageType, | ||
| float | damAmount, | ||
| float | empDamAmount, | ||
| float | maxRange, | ||
| String | impactSoundId, | ||
| float | thickness, | ||
| Color | fringe, | ||
| Color | core, | ||
| EmpArcParams | params ) |
| EmpArcEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnEmpArcVisual | ( | Vector2f | from, |
| CombatEntityAPI | fromAnchor, | ||
| Vector2f | to, | ||
| CombatEntityAPI | toAnchor, | ||
| float | thickness, | ||
| Color | fringe, | ||
| Color | core ) |
| EmpArcEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnEmpArcVisual | ( | Vector2f | from, |
| CombatEntityAPI | fromAnchor, | ||
| Vector2f | to, | ||
| CombatEntityAPI | toAnchor, | ||
| float | thickness, | ||
| Color | fringe, | ||
| Color | core, | ||
| EmpArcParams | params ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.spawnExplosion | ( | Vector2f | loc, |
| Vector2f | vel, | ||
| Color | color, | ||
| float | size, | ||
| float | maxDuration ) |
Purely visual.
| void com.fs.starfarer.api.combat.CombatEngineAPI.spawnMuzzleFlashOrSmoke | ( | ShipAPI | ship, |
| Vector2f | point, | ||
| WeaponSpecAPI | spec, | ||
| float | targetAngle ) |
| void com.fs.starfarer.api.combat.CombatEngineAPI.spawnMuzzleFlashOrSmoke | ( | ShipAPI | ship, |
| WeaponSlotAPI | slot, | ||
| WeaponSpecAPI | spec, | ||
| int | barrel, | ||
| float | targetAngle ) |
| CombatEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnProjectile | ( | ShipAPI | ship, |
| WeaponAPI | weapon, | ||
| String | weaponId, | ||
| String | projSpecId, | ||
| Vector2f | point, | ||
| float | angle, | ||
| Vector2f | shipVelocity ) |
Should work now.
| CombatEntityAPI com.fs.starfarer.api.combat.CombatEngineAPI.spawnProjectile | ( | ShipAPI | ship, |
| WeaponAPI | weapon, | ||
| String | weaponId, | ||
| Vector2f | point, | ||
| float | angle, | ||
| Vector2f | shipVelocity ) |
| ship | The ship launching this projectile. Can be null. |
| weapon | Firing weapon. Can be null. If not, used for figuring out range/damage bonuses, etc. |
| weaponId | ID of the weapon whose projectile to use. Required. |
| point | Location where the projectile will spawn. Required. |
| angle | Initial facing, in degrees (0 = 3 o'clock, 90 = 12 o'clock). |
| shipVelocity | Can be null. Otherwise, will be imparted to projectile. |
| void com.fs.starfarer.api.combat.CombatEngineAPI.updateStationModuleLocations | ( | ShipAPI | station | ) |