Starsector API
Loading...
Searching...
No Matches
com.fs.starfarer.api.combat.MutableStat Class Reference
Inheritance diagram for com.fs.starfarer.api.combat.MutableStat:
[legend]

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 ()
 

Detailed Description

Author
Alex Mosolov

Copyright 2012 Fractal Softworks, LLC

Definition at line 11 of file MutableStat.java.

Constructor & Destructor Documentation

◆ MutableStat()

com.fs.starfarer.api.combat.MutableStat.MutableStat ( float  base)

Definition at line 67 of file MutableStat.java.

Member Function Documentation

◆ applyMods() [1/2]

void com.fs.starfarer.api.combat.MutableStat.applyMods ( MutableStat  other)

Definition at line 100 of file MutableStat.java.

◆ applyMods() [2/2]

void com.fs.starfarer.api.combat.MutableStat.applyMods ( StatBonus  other)

Definition at line 108 of file MutableStat.java.

◆ computeMultMod()

float com.fs.starfarer.api.combat.MutableStat.computeMultMod ( )

Definition at line 336 of file MutableStat.java.

◆ createCopy()

MutableStat com.fs.starfarer.api.combat.MutableStat.createCopy ( )

Definition at line 90 of file MutableStat.java.

◆ getBaseValue()

float com.fs.starfarer.api.combat.MutableStat.getBaseValue ( )

Definition at line 355 of file MutableStat.java.

◆ getFlatMod()

float com.fs.starfarer.api.combat.MutableStat.getFlatMod ( )

Definition at line 321 of file MutableStat.java.

◆ getFlatMods()

HashMap< String, StatMod > com.fs.starfarer.api.combat.MutableStat.getFlatMods ( )

Definition at line 125 of file MutableStat.java.

◆ getFlatStatMod()

StatMod com.fs.starfarer.api.combat.MutableStat.getFlatStatMod ( String  source)

Definition at line 146 of file MutableStat.java.

◆ getModifiedInt()

int com.fs.starfarer.api.combat.MutableStat.getModifiedInt ( )

Definition at line 350 of file MutableStat.java.

◆ getModifiedValue()

float com.fs.starfarer.api.combat.MutableStat.getModifiedValue ( )

Definition at line 345 of file MutableStat.java.

◆ getMult()

float com.fs.starfarer.api.combat.MutableStat.getMult ( )

Definition at line 331 of file MutableStat.java.

◆ getMultMods()

HashMap< String, StatMod > com.fs.starfarer.api.combat.MutableStat.getMultMods ( )

Definition at line 139 of file MutableStat.java.

◆ getMultStatMod()

StatMod com.fs.starfarer.api.combat.MutableStat.getMultStatMod ( String  source)

Definition at line 158 of file MutableStat.java.

◆ getPercentMod()

float com.fs.starfarer.api.combat.MutableStat.getPercentMod ( )

Definition at line 326 of file MutableStat.java.

◆ getPercentMods()

HashMap< String, StatMod > com.fs.starfarer.api.combat.MutableStat.getPercentMods ( )

Definition at line 132 of file MutableStat.java.

◆ getPercentStatMod()

StatMod com.fs.starfarer.api.combat.MutableStat.getPercentStatMod ( String  source)

Definition at line 154 of file MutableStat.java.

◆ isNegative()

boolean com.fs.starfarer.api.combat.MutableStat.isNegative ( )

Definition at line 368 of file MutableStat.java.

◆ isPositive()

boolean com.fs.starfarer.api.combat.MutableStat.isPositive ( )

Definition at line 364 of file MutableStat.java.

◆ isUnmodified()

boolean com.fs.starfarer.api.combat.MutableStat.isUnmodified ( )

Definition at line 115 of file MutableStat.java.

◆ modifyFlat() [1/2]

void com.fs.starfarer.api.combat.MutableStat.modifyFlat ( String  source,
float  value 
)

Definition at line 176 of file MutableStat.java.

◆ modifyFlat() [2/2]

void com.fs.starfarer.api.combat.MutableStat.modifyFlat ( String  source,
float  value,
String  desc 
)

Definition at line 180 of file MutableStat.java.

◆ modifyFlatAlways()

void com.fs.starfarer.api.combat.MutableStat.modifyFlatAlways ( String  source,
float  value,
String  desc 
)

Definition at line 239 of file MutableStat.java.

◆ modifyMult() [1/2]

void com.fs.starfarer.api.combat.MutableStat.modifyMult ( String  source,
float  value 
)

Definition at line 216 of file MutableStat.java.

◆ modifyMult() [2/2]

void com.fs.starfarer.api.combat.MutableStat.modifyMult ( String  source,
float  value,
String  desc 
)

Definition at line 220 of file MutableStat.java.

◆ modifyMultAlways()

void com.fs.starfarer.api.combat.MutableStat.modifyMultAlways ( String  source,
float  value,
String  desc 
)

Definition at line 233 of file MutableStat.java.

◆ modifyPercent() [1/2]

void com.fs.starfarer.api.combat.MutableStat.modifyPercent ( String  source,
float  value 
)

Definition at line 193 of file MutableStat.java.

◆ modifyPercent() [2/2]

void com.fs.starfarer.api.combat.MutableStat.modifyPercent ( String  source,
float  value,
String  desc 
)

Definition at line 197 of file MutableStat.java.

◆ modifyPercentAlways()

void com.fs.starfarer.api.combat.MutableStat.modifyPercentAlways ( String  source,
float  value,
String  desc 
)

Definition at line 210 of file MutableStat.java.

◆ readResolve()

Object com.fs.starfarer.api.combat.MutableStat.readResolve ( )
protected

Reimplemented in com.fs.starfarer.api.combat.MutableStatWithTempMods.

Definition at line 72 of file MutableStat.java.

◆ setBaseValue()

void com.fs.starfarer.api.combat.MutableStat.setBaseValue ( float  base)

Definition at line 359 of file MutableStat.java.

◆ unmodify() [1/2]

void com.fs.starfarer.api.combat.MutableStat.unmodify ( )

Definition at line 245 of file MutableStat.java.

◆ unmodify() [2/2]

void com.fs.starfarer.api.combat.MutableStat.unmodify ( String  source)

Definition at line 252 of file MutableStat.java.

◆ unmodifyFlat()

void com.fs.starfarer.api.combat.MutableStat.unmodifyFlat ( String  source)

Definition at line 269 of file MutableStat.java.

◆ unmodifyMult()

void com.fs.starfarer.api.combat.MutableStat.unmodifyMult ( String  source)

Definition at line 283 of file MutableStat.java.

◆ unmodifyPercent()

void com.fs.starfarer.api.combat.MutableStat.unmodifyPercent ( String  source)

Definition at line 276 of file MutableStat.java.

◆ writeReplace()

Object com.fs.starfarer.api.combat.MutableStat.writeReplace ( )
protected

Reimplemented in com.fs.starfarer.api.combat.MutableStatWithTempMods.

Definition at line 96 of file MutableStat.java.

Member Data Documentation

◆ base

float com.fs.starfarer.api.combat.MutableStat.base

Definition at line 51 of file MutableStat.java.

◆ modified

float com.fs.starfarer.api.combat.MutableStat.modified

Definition at line 52 of file MutableStat.java.


The documentation for this class was generated from the following file: