19 #ifndef OPENXCOM_STATSTRING_H
20 #define OPENXCOM_STATSTRING_H
22 #include <yaml-cpp/yaml.h>
24 #include "StatStringCondition.h"
110 std::string _stringToBeAddedIfAllConditionsAreMet;
111 std::vector< StatStringCondition* > _conditions;
112 StatStringCondition *getCondition(
const std::string &conditionName,
const YAML::Node &node);
119 void load(
const YAML::Node& node);
125 static const std::wstring
calcStatString(
UnitStats ¤tStats,
const std::vector<StatString *> &statStrings,
bool psiStrengthEval);
Definition: StatStringCondition.h:27
const std::string getString()
Get the StatString string.
Definition: StatString.cpp:92
static const std::wstring calcStatString(UnitStats ¤tStats, const std::vector< StatString * > &statStrings, bool psiStrengthEval)
Calculate a StatString.
Definition: StatString.cpp:104
static std::map< std::string, int > getCurrentStats(UnitStats ¤tStats)
Get the CurrentStats.
Definition: StatString.cpp:150
For adding statStrings to the game.
Definition: StatString.h:107
virtual ~StatString()
Cleans up the StatString ruleset.
Definition: StatString.cpp:36
const std::vector< StatStringCondition * > getConditions()
Get the conditions for this StatString.
Definition: StatString.cpp:83
StatString()
Creates a blank StatString ruleset.
Definition: StatString.cpp:29
This struct holds some plain unit attribute data together.
Definition: Unit.h:32
void load(const YAML::Node &node)
Loads the StatString from YAML.
Definition: StatString.cpp:44