Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.fleet.FleetMemberStatusAPI Interface Reference

Public Member Functions

float getHullDamageTaken ()
 
float getHullFraction ()
 
void resetDamageTaken ()
 
void repairDisabledABit ()
 
void disable ()
 
void repairFully ()
 
void repairFullyNoNewFighters ()
 
void repairFraction (float fraction)
 
void applyDamage (float hitStrength)
 
void applyHullFractionDamage (float fraction)
 
void applyHullFractionDamage (float fraction, int index)
 
int getNumStatuses ()
 
void setHullFraction (float fraction)
 
void repairArmorAllCells (float fraction)
 
void repairHullFraction (float fraction)
 
float getArmorDamageTaken ()
 
void setRandom (Random random)
 
Random getRandom ()
 
void setDetached (int index, Boolean detached)
 
void setHullFraction (int index, float hullFraction)
 
float getHullFraction (int index)
 
boolean isDetached (int index)
 
boolean needsRepairs ()
 
void setPermaDetached (int index, Boolean detached)
 
boolean isPermaDetached (int index)
 
void resetAmmoState ()
 
void applyDamage (float hitStrength, float forceHullFractionDamage)
 

Detailed Description

Definition at line 6 of file FleetMemberStatusAPI.java.

Member Function Documentation

◆ 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
hitStrength

◆ 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
fraction

◆ applyHullFractionDamage() [2/2]

void com.fs.starfarer.api.fleet.FleetMemberStatusAPI.applyHullFractionDamage ( float  fraction,
int  index 
)

Useful for applying damage to specific fighters.

Parameters
fraction
index

◆ 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 ( )

From 0 to 1.

Returns

◆ 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: