SuperTuxKart
|
This class manages the list of all achievements. More...
#include <achievements_manager.hpp>
Public Member Functions | |
AchievementInfo * | getAchievementInfo (uint32_t id) const |
AchievementsStatus * | createAchievementsStatus (const XMLNode *node=NULL, bool updateWeb=false) |
Create a new AchievementStatus object that stores all achievement status information for a single player. | |
const std::map< uint32_t, AchievementInfo * > & | getAllInfo () |
WebAchievementsStatus * | getWebAchievementStatus () |
Static Public Member Functions | |
static void | create () |
Static function to create the instance of the achievement manager. | |
static AchievementsManager * | get () |
Static function to get the achievement manager. | |
static void | destroy () |
Private Member Functions | |
AchievementsManager () | |
Constructor, which reads data/achievements.xml and stores the information in AchievementInfo objects. | |
AchievementsStatus * | createNewSlot (unsigned int id, bool online) |
Private Attributes | |
std::map< uint32_t, AchievementInfo * > | m_achievements_info |
WebAchievementsStatus * | m_web |
Static Private Attributes | |
static AchievementsManager * | m_achievements_manager = NULL |
Pointer to the single instance. | |
This class manages the list of all achievements.
It reads the data/achievements.xml file, which contains the conditions for each achievement.
AchievementsStatus * AchievementsManager::createAchievementsStatus | ( | const XMLNode * | node = NULL , |
bool | updateWeb = false |
||
) |
Create a new AchievementStatus object that stores all achievement status information for a single player.
node | The XML of saved data, or NULL if no saved data exists. |