OpenXcom
1.0
Open-source clone of the original X-Com
|
For adding statStrings to the game. More...
#include <StatString.h>
Public Member Functions | |
StatString () | |
Creates a blank StatString ruleset. More... | |
virtual | ~StatString () |
Cleans up the StatString ruleset. More... | |
void | load (const YAML::Node &node) |
Loads the StatString from YAML. More... | |
const std::vector < StatStringCondition * > | getConditions () |
Get the conditions for this StatString. More... | |
const std::string | getString () |
Get the StatString string. More... | |
Static Public Member Functions | |
static const std::wstring | calcStatString (UnitStats ¤tStats, const std::vector< StatString * > &statStrings, bool psiStrengthEval) |
Calculate a StatString. More... | |
static std::map< std::string, int > | getCurrentStats (UnitStats ¤tStats) |
Get the CurrentStats. More... | |
For adding statStrings to the game.
OpenXcom::StatString::StatString | ( | ) |
Creates a blank StatString ruleset.
Creates a blank StatString.
|
virtual |
Cleans up the StatString ruleset.
Cleans up the extra StatString.
|
static |
Calculate a StatString.
Calculates the list of StatStrings that apply to certain unit stats.
currentStats | Unit stats. |
statStrings | List of statString rules. |
psiStrengthEval | Are psi stats available? |
const std::vector< StatStringCondition * > OpenXcom::StatString::getConditions | ( | ) |
Get the conditions for this StatString.
Returns the conditions associated with this StatString.
|
static |
const std::string OpenXcom::StatString::getString | ( | ) |
Get the StatString string.
Returns the string to add to a name for this StatString.
void OpenXcom::StatString::load | ( | const YAML::Node & | node | ) |