Starsector API
|
Classes | |
class | StatMod |
enum | StatModType |
Public Member Functions | |
MutableStat (float base) | |
MutableStat | createCopy () |
void | applyMods (MutableStat other) |
void | applyMods (StatBonus other) |
boolean | isUnmodified () |
HashMap< String, StatMod > | getFlatMods () |
HashMap< String, StatMod > | getPercentMods () |
HashMap< String, StatMod > | getMultMods () |
StatMod | getFlatStatMod (String source) |
StatMod | getPercentStatMod (String source) |
StatMod | getMultStatMod (String source) |
void | modifyFlat (String source, float value) |
void | modifyFlat (String source, float value, String desc) |
void | modifyPercent (String source, float value) |
void | modifyPercent (String source, float value, String desc) |
void | modifyPercentAlways (String source, float value, String desc) |
void | modifyMult (String source, float value) |
void | modifyMult (String source, float value, String desc) |
void | modifyMultAlways (String source, float value, String desc) |
void | modifyFlatAlways (String source, float value, String desc) |
void | unmodify () |
void | unmodify (String source) |
void | unmodifyFlat (String source) |
void | unmodifyPercent (String source) |
void | unmodifyMult (String source) |
float | getFlatMod () |
float | getPercentMod () |
float | getMult () |
float | computeMultMod () |
float | getModifiedValue () |
int | getModifiedInt () |
float | getBaseValue () |
void | setBaseValue (float base) |
boolean | isPositive () |
boolean | isNegative () |
Public Attributes | |
float | base |
float | modified |
Protected Member Functions | |
Object | readResolve () |
Object | writeReplace () |
Copyright 2012 Fractal Softworks, LLC
Definition at line 11 of file MutableStat.java.
com.fs.starfarer.api.combat.MutableStat.MutableStat | ( | float | base | ) |
Definition at line 67 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.applyMods | ( | MutableStat | other | ) |
Definition at line 100 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.applyMods | ( | StatBonus | other | ) |
Definition at line 108 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.computeMultMod | ( | ) |
Definition at line 336 of file MutableStat.java.
MutableStat com.fs.starfarer.api.combat.MutableStat.createCopy | ( | ) |
Definition at line 90 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.getBaseValue | ( | ) |
Definition at line 355 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.getFlatMod | ( | ) |
Definition at line 321 of file MutableStat.java.
HashMap< String, StatMod > com.fs.starfarer.api.combat.MutableStat.getFlatMods | ( | ) |
Definition at line 125 of file MutableStat.java.
StatMod com.fs.starfarer.api.combat.MutableStat.getFlatStatMod | ( | String | source | ) |
Definition at line 146 of file MutableStat.java.
int com.fs.starfarer.api.combat.MutableStat.getModifiedInt | ( | ) |
Definition at line 350 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.getModifiedValue | ( | ) |
Definition at line 345 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.getMult | ( | ) |
Definition at line 331 of file MutableStat.java.
HashMap< String, StatMod > com.fs.starfarer.api.combat.MutableStat.getMultMods | ( | ) |
Definition at line 139 of file MutableStat.java.
StatMod com.fs.starfarer.api.combat.MutableStat.getMultStatMod | ( | String | source | ) |
Definition at line 158 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.getPercentMod | ( | ) |
Definition at line 326 of file MutableStat.java.
HashMap< String, StatMod > com.fs.starfarer.api.combat.MutableStat.getPercentMods | ( | ) |
Definition at line 132 of file MutableStat.java.
StatMod com.fs.starfarer.api.combat.MutableStat.getPercentStatMod | ( | String | source | ) |
Definition at line 154 of file MutableStat.java.
boolean com.fs.starfarer.api.combat.MutableStat.isNegative | ( | ) |
Definition at line 368 of file MutableStat.java.
boolean com.fs.starfarer.api.combat.MutableStat.isPositive | ( | ) |
Definition at line 364 of file MutableStat.java.
boolean com.fs.starfarer.api.combat.MutableStat.isUnmodified | ( | ) |
Definition at line 115 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyFlat | ( | String | source, |
float | value | ||
) |
Definition at line 176 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyFlat | ( | String | source, |
float | value, | ||
String | desc | ||
) |
Definition at line 180 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyFlatAlways | ( | String | source, |
float | value, | ||
String | desc | ||
) |
Definition at line 239 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyMult | ( | String | source, |
float | value | ||
) |
Definition at line 216 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyMult | ( | String | source, |
float | value, | ||
String | desc | ||
) |
Definition at line 220 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyMultAlways | ( | String | source, |
float | value, | ||
String | desc | ||
) |
Definition at line 233 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyPercent | ( | String | source, |
float | value | ||
) |
Definition at line 193 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyPercent | ( | String | source, |
float | value, | ||
String | desc | ||
) |
Definition at line 197 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.modifyPercentAlways | ( | String | source, |
float | value, | ||
String | desc | ||
) |
Definition at line 210 of file MutableStat.java.
|
protected |
Reimplemented in com.fs.starfarer.api.combat.MutableStatWithTempMods.
Definition at line 72 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.setBaseValue | ( | float | base | ) |
Definition at line 359 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.unmodify | ( | ) |
Definition at line 245 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.unmodify | ( | String | source | ) |
Definition at line 252 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.unmodifyFlat | ( | String | source | ) |
Definition at line 269 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.unmodifyMult | ( | String | source | ) |
Definition at line 283 of file MutableStat.java.
void com.fs.starfarer.api.combat.MutableStat.unmodifyPercent | ( | String | source | ) |
Definition at line 276 of file MutableStat.java.
|
protected |
Reimplemented in com.fs.starfarer.api.combat.MutableStatWithTempMods.
Definition at line 96 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.base |
Definition at line 51 of file MutableStat.java.
float com.fs.starfarer.api.combat.MutableStat.modified |
Definition at line 52 of file MutableStat.java.