Definition at line 6 of file FleetMemberStatusAPI.java.
◆ applyDamage() [1/2]
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.applyDamage |
( |
float |
hitStrength | ) |
|
Applies damage in a random location on the hull. In the case of a fighter wing, first picks a random wing member.
- Parameters
-
◆ applyDamage() [2/2]
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.applyDamage |
( |
float |
hitStrength, |
|
|
float |
forceHullFractionDamage |
|
) |
| |
◆ applyHullFractionDamage() [1/2]
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.applyHullFractionDamage |
( |
float |
fraction | ) |
|
Applied to a random location on the hull, deals guaranteed amount of hull damage, expressed as a fraction of the maximum hull value.
- Parameters
-
◆ applyHullFractionDamage() [2/2]
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.applyHullFractionDamage |
( |
float |
fraction, |
|
|
int |
index |
|
) |
| |
Useful for applying damage to specific fighters.
- Parameters
-
◆ disable()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.disable |
( |
| ) |
|
◆ getArmorDamageTaken()
float com.fs.starfarer.api.fleet.FleetMemberStatusAPI.getArmorDamageTaken |
( |
| ) |
|
◆ getHullDamageTaken()
float com.fs.starfarer.api.fleet.FleetMemberStatusAPI.getHullDamageTaken |
( |
| ) |
|
Total hull damage (as a fraction) since resetDamageTaken() was last called.
- Returns
◆ getHullFraction() [1/2]
float com.fs.starfarer.api.fleet.FleetMemberStatusAPI.getHullFraction |
( |
| ) |
|
◆ getHullFraction() [2/2]
float com.fs.starfarer.api.fleet.FleetMemberStatusAPI.getHullFraction |
( |
int |
index | ) |
|
◆ getNumStatuses()
int com.fs.starfarer.api.fleet.FleetMemberStatusAPI.getNumStatuses |
( |
| ) |
|
- Returns
- 1, or number of fighters in the wing, or number of modules including the base.
◆ getRandom()
Random com.fs.starfarer.api.fleet.FleetMemberStatusAPI.getRandom |
( |
| ) |
|
◆ isDetached()
boolean com.fs.starfarer.api.fleet.FleetMemberStatusAPI.isDetached |
( |
int |
index | ) |
|
◆ isPermaDetached()
boolean com.fs.starfarer.api.fleet.FleetMemberStatusAPI.isPermaDetached |
( |
int |
index | ) |
|
◆ needsRepairs()
boolean com.fs.starfarer.api.fleet.FleetMemberStatusAPI.needsRepairs |
( |
| ) |
|
◆ repairArmorAllCells()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.repairArmorAllCells |
( |
float |
fraction | ) |
|
◆ repairDisabledABit()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.repairDisabledABit |
( |
| ) |
|
Repairs the disabled ship's hull a few percentage points.
◆ repairFraction()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.repairFraction |
( |
float |
fraction | ) |
|
◆ repairFully()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.repairFully |
( |
| ) |
|
◆ repairFullyNoNewFighters()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.repairFullyNoNewFighters |
( |
| ) |
|
◆ repairHullFraction()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.repairHullFraction |
( |
float |
fraction | ) |
|
◆ resetAmmoState()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.resetAmmoState |
( |
| ) |
|
◆ resetDamageTaken()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.resetDamageTaken |
( |
| ) |
|
After this call, getHullDamageTaken() will return 0 until the ship takes more damage.
◆ setDetached()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.setDetached |
( |
int |
index, |
|
|
Boolean |
detached |
|
) |
| |
◆ setHullFraction() [1/2]
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.setHullFraction |
( |
float |
fraction | ) |
|
◆ setHullFraction() [2/2]
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.setHullFraction |
( |
int |
index, |
|
|
float |
hullFraction |
|
) |
| |
◆ setPermaDetached()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.setPermaDetached |
( |
int |
index, |
|
|
Boolean |
detached |
|
) |
| |
◆ setRandom()
void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.setRandom |
( |
Random |
random | ) |
|
The documentation for this interface was generated from the following file: