Definition at line 5 of file RepairTrackerAPI.java.
◆ applyCREvent() [1/2]
void com.fs.starfarer.api.fleet.RepairTrackerAPI.applyCREvent |
( |
float |
crChange, |
|
|
String |
description |
|
) |
| |
- Parameters
-
crChange | from -1 to 1 |
description | shows up in the CR tooltip |
◆ applyCREvent() [2/2]
void com.fs.starfarer.api.fleet.RepairTrackerAPI.applyCREvent |
( |
float |
crChange, |
|
|
String |
id, |
|
|
String |
description |
|
) |
| |
Uses id to apply subsequent CR changes to the same "recent event". Useful for gradual CR loss, i.e. from star corona.
- Parameters
-
◆ computeRepairednessFraction()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.computeRepairednessFraction |
( |
| ) |
|
Including both hull and armor.
- Returns
- 0 to 1
◆ getBaseCR()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getBaseCR |
( |
| ) |
|
Current CR without the crew understrength multiplier, if any.
- Returns
◆ getCR()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getCR |
( |
| ) |
|
Returned value is modified by crew fraction.
- Returns
- from 0 to 1.
◆ getCRPriorToMothballing()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getCRPriorToMothballing |
( |
| ) |
|
◆ getDecreaseRate()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getDecreaseRate |
( |
| ) |
|
◆ getFuelFromScuttling()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getFuelFromScuttling |
( |
| ) |
|
◆ getHeavyMachineryFromScuttling()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getHeavyMachineryFromScuttling |
( |
| ) |
|
◆ getMaxCR()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getMaxCR |
( |
| ) |
|
◆ getNoSupplyCRLossEvent()
CREvent com.fs.starfarer.api.fleet.RepairTrackerAPI.getNoSupplyCRLossEvent |
( |
| ) |
|
The "event" for gradual supply loss over the last week is not included in the return value of getRecentEvents().
- Returns
◆ getRecentEvents()
List< CREvent > com.fs.starfarer.api.fleet.RepairTrackerAPI.getRecentEvents |
( |
| ) |
|
◆ getRecoveryRate()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getRecoveryRate |
( |
| ) |
|
◆ getRemainingRepairTime()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getRemainingRepairTime |
( |
| ) |
|
◆ getRepairRatePerDay()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getRepairRatePerDay |
( |
| ) |
|
◆ getSuppliesFromScuttling()
float com.fs.starfarer.api.fleet.RepairTrackerAPI.getSuppliesFromScuttling |
( |
| ) |
|
◆ isCrashMothballed()
boolean com.fs.starfarer.api.fleet.RepairTrackerAPI.isCrashMothballed |
( |
| ) |
|
◆ isMothballed()
boolean com.fs.starfarer.api.fleet.RepairTrackerAPI.isMothballed |
( |
| ) |
|
◆ isSuspendRepairs()
boolean com.fs.starfarer.api.fleet.RepairTrackerAPI.isSuspendRepairs |
( |
| ) |
|
◆ performRepairsFraction()
void com.fs.starfarer.api.fleet.RepairTrackerAPI.performRepairsFraction |
( |
float |
fraction | ) |
|
◆ setCR()
void com.fs.starfarer.api.fleet.RepairTrackerAPI.setCR |
( |
float |
cr | ) |
|
getCR() will return this value, modified by the crew fraction
- Parameters
-
◆ setCrashMothballed()
void com.fs.starfarer.api.fleet.RepairTrackerAPI.setCrashMothballed |
( |
boolean |
crashMothballed | ) |
|
◆ setCRPriorToMothballing()
void com.fs.starfarer.api.fleet.RepairTrackerAPI.setCRPriorToMothballing |
( |
float |
crPriorToMothballing | ) |
|
◆ setMothballed()
void com.fs.starfarer.api.fleet.RepairTrackerAPI.setMothballed |
( |
boolean |
mothballed | ) |
|
◆ setSuspendRepairs()
void com.fs.starfarer.api.fleet.RepairTrackerAPI.setSuspendRepairs |
( |
boolean |
suspendRepairs | ) |
|
The documentation for this interface was generated from the following file: