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

Classes

class  TemporaryStatMod
 

Public Member Functions

 MutableStatWithTempMods (float base)
 
void removeTemporaryMod (String source)
 
void addTemporaryModFlat (float durInDays, String source, String desc, float value)
 
void addTemporaryModMult (float durInDays, String source, String desc, float value)
 
void addTemporaryModFlat (float durInDays, String source, float value)
 
void addTemporaryModPercent (float durInDays, String source, String desc, float value)
 
void addTemporaryModPercent (float durInDays, String source, float value)
 
Map< String, TemporaryStatMod > getMods ()
 
boolean hasMod (String source)
 
void advance (float days)
 
- Public Member Functions inherited from com.fs.starfarer.api.combat.MutableStat
 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 ()
 

Protected Member Functions

Object readResolve ()
 
Object writeReplace ()
 

Additional Inherited Members

- Public Attributes inherited from com.fs.starfarer.api.combat.MutableStat
float base
 
float modified
 

Detailed Description

Author
Alex Mosolov

Copyright 2012 Fractal Softworks, LLC

Definition at line 12 of file MutableStatWithTempMods.java.

Constructor & Destructor Documentation

◆ MutableStatWithTempMods()

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

Definition at line 25 of file MutableStatWithTempMods.java.

Member Function Documentation

◆ addTemporaryModFlat() [1/2]

void com.fs.starfarer.api.combat.MutableStatWithTempMods.addTemporaryModFlat ( float  durInDays,
String  source,
float  value 
)

Definition at line 73 of file MutableStatWithTempMods.java.

◆ addTemporaryModFlat() [2/2]

void com.fs.starfarer.api.combat.MutableStatWithTempMods.addTemporaryModFlat ( float  durInDays,
String  source,
String  desc,
float  value 
)

Definition at line 65 of file MutableStatWithTempMods.java.

◆ addTemporaryModMult()

void com.fs.starfarer.api.combat.MutableStatWithTempMods.addTemporaryModMult ( float  durInDays,
String  source,
String  desc,
float  value 
)

Definition at line 69 of file MutableStatWithTempMods.java.

◆ addTemporaryModPercent() [1/2]

void com.fs.starfarer.api.combat.MutableStatWithTempMods.addTemporaryModPercent ( float  durInDays,
String  source,
float  value 
)

Definition at line 81 of file MutableStatWithTempMods.java.

◆ addTemporaryModPercent() [2/2]

void com.fs.starfarer.api.combat.MutableStatWithTempMods.addTemporaryModPercent ( float  durInDays,
String  source,
String  desc,
float  value 
)

Definition at line 77 of file MutableStatWithTempMods.java.

◆ advance()

void com.fs.starfarer.api.combat.MutableStatWithTempMods.advance ( float  days)

Definition at line 96 of file MutableStatWithTempMods.java.

◆ getMods()

Map< String, TemporaryStatMod > com.fs.starfarer.api.combat.MutableStatWithTempMods.getMods ( )

Definition at line 86 of file MutableStatWithTempMods.java.

◆ hasMod()

boolean com.fs.starfarer.api.combat.MutableStatWithTempMods.hasMod ( String  source)

Definition at line 92 of file MutableStatWithTempMods.java.

◆ readResolve()

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

Reimplemented from com.fs.starfarer.api.combat.MutableStat.

Definition at line 29 of file MutableStatWithTempMods.java.

◆ removeTemporaryMod()

void com.fs.starfarer.api.combat.MutableStatWithTempMods.removeTemporaryMod ( String  source)

Definition at line 48 of file MutableStatWithTempMods.java.

◆ writeReplace()

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

Reimplemented from com.fs.starfarer.api.combat.MutableStat.

Definition at line 40 of file MutableStatWithTempMods.java.


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