This class stores an achievement definition from the xml file, including title, description, but also how to achieve this achievement.
More...
#include <achievement_info.hpp>
|
| enum | operationType { OP_NONE = 0
, OP_ADD = 1
, OP_SUBSTRACT = 2
} |
| |
|
| | AchievementInfo (const XMLNode *input) |
| | The constructor reads the dat from the xml information. More...
|
| |
|
virtual irr::core::stringw | goalString () |
| | Returns a string with the number of goals to fullfil to get this achievements.
|
| |
|
virtual irr::core::stringw | progressString () |
| | Returns a string with the target of the goal if the achievement has only one goal (a sum counts as one goal).
|
| |
|
int | getProgressTarget () |
| |
|
int | getGoalCount () |
| |
|
int | getDepth () |
| |
|
uint32_t | getID () const |
| |
|
irr::core::stringw | getDescription () const |
| |
|
irr::core::stringw | getName () const |
| |
|
std::string | getRawName () const |
| |
|
std::string | getRawDescription () const |
| |
|
bool | isSecret () const |
| |
|
void | copyGoalTree (goalTree ©, goalTree &model, bool set_values_to_zero) |
| | Copy a goal tree to an EMPTY goal tree by recursion.
|
| |
|
|
class | Achievement |
| |
|
class | AchievementProgressDialog |
| |
This class stores an achievement definition from the xml file, including title, description, but also how to achieve this achievement.
Contrast with the Achievement class, which is a player-specific instance tracking the progress of the achievement.
◆ AchievementInfo()
| AchievementInfo::AchievementInfo |
( |
const XMLNode * |
input | ) |
|
The constructor reads the dat from the xml information.
- Parameters
-
| input | XML node for this achievement info. |
◆ getRecursiveDepth()
| int AchievementInfo::getRecursiveDepth |
( |
goalTree & |
parent | ) |
|
|
private |
Returns the goal tree's depth.
If an AND/OR/ANT-AT-ONCE contains only one element, it is ignored (this is useful because the root is always AND ; so for e.g. an OR achievement, we prefer to not display it).
The documentation for this class was generated from the following files: