public interface FleetMemberStatusAPI
Modifier and Type | Method and Description |
---|---|
void |
applyDamage(float hitStrength)
Applies damage in a random location on the hull.
|
void |
applyDamage(float hitStrength,
float forceHullFractionDamage) |
void |
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.
|
void |
applyHullFractionDamage(float fraction,
int index)
Useful for applying damage to specific fighters.
|
void |
disable() |
float |
getArmorDamageTaken() |
float |
getHullDamageTaken()
Total hull damage (as a fraction) since resetDamageTaken() was last called.
|
float |
getHullFraction()
From 0 to 1.
|
float |
getHullFraction(int index) |
int |
getNumStatuses() |
java.util.Random |
getRandom() |
boolean |
isDetached(int index) |
boolean |
isPermaDetached(int index) |
boolean |
needsRepairs() |
void |
repairArmorAllCells(float fraction) |
void |
repairDisabledABit()
Repairs the disabled ship's hull a few percentage points.
|
void |
repairFraction(float fraction) |
void |
repairFully() |
void |
repairFullyNoNewFighters() |
void |
repairHullFraction(float fraction) |
void |
resetAmmoState() |
void |
resetDamageTaken()
After this call, getHullDamageTaken() will return 0 until the ship takes more damage.
|
void |
setDetached(int index,
java.lang.Boolean detached) |
void |
setHullFraction(float fraction) |
void |
setHullFraction(int index,
float hullFraction) |
void |
setPermaDetached(int index,
java.lang.Boolean detached) |
void |
setRandom(java.util.Random random) |
float getHullDamageTaken()
float getHullFraction()
void resetDamageTaken()
void repairDisabledABit()
void disable()
void repairFully()
void repairFullyNoNewFighters()
void repairFraction(float fraction)
void applyDamage(float hitStrength)
hitStrength
- void applyHullFractionDamage(float fraction)
fraction
- void applyHullFractionDamage(float fraction, int index)
fraction
- index
- int getNumStatuses()
void setHullFraction(float fraction)
void repairArmorAllCells(float fraction)
void repairHullFraction(float fraction)
float getArmorDamageTaken()
void setRandom(java.util.Random random)
java.util.Random getRandom()
void setDetached(int index, java.lang.Boolean detached)
void setHullFraction(int index, float hullFraction)
float getHullFraction(int index)
boolean isDetached(int index)
boolean needsRepairs()
void setPermaDetached(int index, java.lang.Boolean detached)
boolean isPermaDetached(int index)
void resetAmmoState()
void applyDamage(float hitStrength, float forceHullFractionDamage)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.