SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
AchievementsManager Class Reference

This class manages the list of all achievements. More...

#include <achievements_manager.hpp>

Public Member Functions

AchievementInfogetAchievementInfo (uint32_t id) const
 
AchievementsStatuscreateAchievementsStatus (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 ()
 
WebAchievementsStatusgetWebAchievementStatus ()
 

Static Public Member Functions

static void create ()
 Static function to create the instance of the achievement manager.
 
static AchievementsManagerget ()
 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.
 
AchievementsStatuscreateNewSlot (unsigned int id, bool online)
 

Private Attributes

std::map< uint32_t, AchievementInfo * > m_achievements_info
 
WebAchievementsStatusm_web
 

Static Private Attributes

static AchievementsManagerm_achievements_manager = NULL
 Pointer to the single instance.
 

Detailed Description

This class manages the list of all achievements.

It reads the data/achievements.xml file, which contains the conditions for each achievement.

Member Function Documentation

◆ createAchievementsStatus()

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.

Parameters
nodeThe XML of saved data, or NULL if no saved data exists.

The documentation for this class was generated from the following files: