![]() |
OpenXcom
1.0
Open-source clone of the original X-Com
|
Public Member Functions | |
StatStringCondition (const std::string &conditionName, int minVal, int maxVal) | |
Creates a blank StatStringCondition. More... | |
virtual | ~StatStringCondition () |
Cleans up the StatStringCondition. More... | |
std::string | getConditionName () const |
Gets the condition name. More... | |
int | getMinVal () const |
Gets the minimum value. More... | |
int | getMaxVal () const |
Gets the maximum value. More... | |
bool | isMet (int stat, bool psi) const |
Checks if the condition has been met. More... | |
OpenXcom::StatStringCondition::StatStringCondition | ( | const std::string & | conditionName, |
int | minVal, | ||
int | maxVal | ||
) |
Creates a blank StatStringCondition.
conditionName | Name of the condition. |
minVal | Minimum value. |
maxVal | Maximum value. |
|
virtual |
Cleans up the StatStringCondition.
Cleans up the extra StatStringCondition.
std::string OpenXcom::StatStringCondition::getConditionName | ( | ) | const |
Gets the condition name.
Gets the condition string.
int OpenXcom::StatStringCondition::getMaxVal | ( | ) | const |
Gets the maximum value.
Gets the maximum value for the condition (default is 255).
int OpenXcom::StatStringCondition::getMinVal | ( | ) | const |
Gets the minimum value.
Gets the minimum value for the condition (default is 0).
bool OpenXcom::StatStringCondition::isMet | ( | int | stat, |
bool | psi | ||
) | const |
Checks if the condition has been met.
Checks if this condition is valid for the current stat.
stat | The current soldier stat. |
psi | Can we show psi stats? |