public interface RepairTrackerAPI
| Modifier and Type | Interface and Description |
|---|---|
static class |
RepairTrackerAPI.CREvent |
| Modifier and Type | Method and Description |
|---|---|
void |
applyCREvent(float crChange,
java.lang.String description) |
void |
applyCREvent(float crChange,
java.lang.String id,
java.lang.String description)
Uses id to apply subsequent CR changes to the same "recent event".
|
float |
computeRepairednessFraction()
Including both hull and armor.
|
float |
getBaseCR()
Current CR without the crew understrength multiplier, if any.
|
float |
getCR()
Returned value is modified by crew fraction.
|
float |
getCRPriorToMothballing() |
float |
getDecreaseRate() |
float |
getFuelFromScuttling() |
float |
getHeavyMachineryFromScuttling() |
float |
getMaxCR() |
RepairTrackerAPI.CREvent |
getNoSupplyCRLossEvent()
The "event" for gradual supply loss over the last week is not included in the return value
of getRecentEvents().
|
java.util.List<RepairTrackerAPI.CREvent> |
getRecentEvents() |
float |
getRecoveryRate() |
float |
getRemainingRepairTime() |
float |
getRepairRatePerDay() |
float |
getSuppliesFromScuttling() |
boolean |
isCrashMothballed() |
boolean |
isMothballed() |
boolean |
isSuspendRepairs() |
void |
performRepairsFraction(float fraction) |
void |
setCR(float cr)
getCR() will return this value, modified by the crew fraction
|
void |
setCrashMothballed(boolean crashMothballed) |
void |
setCRPriorToMothballing(float crPriorToMothballing) |
void |
setMothballed(boolean mothballed) |
void |
setSuspendRepairs(boolean suspendRepairs) |
void applyCREvent(float crChange, java.lang.String description)
crChange - from -1 to 1description - shows up in the CR tooltipfloat getCR()
void setCR(float cr)
cr - from 0 to 1.float getSuppliesFromScuttling()
float getFuelFromScuttling()
float getRecoveryRate()
float getDecreaseRate()
float getMaxCR()
float getBaseCR()
java.util.List<RepairTrackerAPI.CREvent> getRecentEvents()
RepairTrackerAPI.CREvent getNoSupplyCRLossEvent()
boolean isSuspendRepairs()
void setSuspendRepairs(boolean suspendRepairs)
void performRepairsFraction(float fraction)
float getRemainingRepairTime()
float computeRepairednessFraction()
boolean isMothballed()
void setMothballed(boolean mothballed)
boolean isCrashMothballed()
void setCrashMothballed(boolean crashMothballed)
float getRepairRatePerDay()
void applyCREvent(float crChange, java.lang.String id, java.lang.String description)
crChange - id - description - float getHeavyMachineryFromScuttling()
float getCRPriorToMothballing()
void setCRPriorToMothballing(float crPriorToMothballing)