Package com.fs.starfarer.api.combat
Interface DamageAPI
public interface DamageAPI
-
Method Summary
Modifier and TypeMethodDescriptionclone()
float
computeDamageDealt
(float amount) float
computeFluxDealt
(float amount) Emp damage.float
float
float
float
float
getStats()
getType()
boolean
isDps()
boolean
boolean
boolean
void
setDamage
(float amount) void
setDpsDuration
(float dpsDuration) void
setFluxComponent
(float fluxComponent) void
setForceHardFlux
(boolean forceHardFlux) Useful to make beam weapons deal hard flux.void
setMissile
(boolean isMissile) void
setMultiplier
(float multiplier) void
setSoftFlux
(boolean isSoftFlux) Only useful for making non-beam weapons deal hard flux damage.void
setStats
(MutableShipStatsAPI stats) void
setType
(DamageType type)
-
Method Details
-
computeFluxDealt
float computeFluxDealt(float amount) Emp damage.- Parameters:
amount
- seconds, used when damage is dps.- Returns:
-
computeDamageDealt
float computeDamageDealt(float amount) - Parameters:
amount
- seconds, used when damage is dps.- Returns:
-
isMissile
boolean isMissile() -
setMissile
void setMissile(boolean isMissile) -
setStats
-
getStats
MutableShipStatsAPI getStats() -
getDamage
float getDamage() -
setDamage
void setDamage(float amount) -
isDps
boolean isDps() -
getMultiplier
float getMultiplier() -
setMultiplier
void setMultiplier(float multiplier) -
getType
DamageType getType() -
setType
-
getFluxComponent
float getFluxComponent() -
setFluxComponent
void setFluxComponent(float fluxComponent) -
isSoftFlux
boolean isSoftFlux() -
setSoftFlux
void setSoftFlux(boolean isSoftFlux) Only useful for making non-beam weapons deal hard flux damage. For making beam weapons deal hard flux, use setForceHardFlux(true).- Parameters:
isSoftFlux
-
-
getDpsDuration
float getDpsDuration() -
setDpsDuration
void setDpsDuration(float dpsDuration) -
clone
DamageAPI clone() -
getModifier
MutableStat getModifier() -
isForceHardFlux
boolean isForceHardFlux() -
setForceHardFlux
void setForceHardFlux(boolean forceHardFlux) Useful to make beam weapons deal hard flux.- Parameters:
forceHardFlux
-
-
getBaseDamage
float getBaseDamage()
-