19#ifndef HEADER_ACHIEVEMENTS_MANAGER_HPP
20#define HEADER_ACHIEVEMENTS_MANAGER_HPP
22#include "achievements/achievements_status.hpp"
23#include "achievements/web_achievements_status.hpp"
26#include "utils/ptr_vector.hpp"
46 std::map<uint32_t, AchievementInfo *> m_achievements_info;
78 const std::map<uint32_t, AchievementInfo *> & getAllInfo()
80 return m_achievements_info;
This class stores an achievement definition from the xml file, including title, description,...
Definition: achievement_info.hpp:41
This class manages the list of all achievements.
Definition: achievements_manager.hpp:41
AchievementsStatus * createAchievementsStatus(const XMLNode *node=NULL, bool updateWeb=false)
Create a new AchievementStatus object that stores all achievement status information for a single pla...
Definition: achievements_manager.cpp:79
static AchievementsManager * m_achievements_manager
Pointer to the single instance.
Definition: achievements_manager.hpp:44
static AchievementsManager * get()
Static function to get the achievement manager.
Definition: achievements_manager.hpp:62
AchievementsManager()
Constructor, which reads data/achievements.xml and stores the information in AchievementInfo objects.
Definition: achievements_manager.cpp:41
static void create()
Static function to create the instance of the achievement manager.
Definition: achievements_manager.hpp:55
This class keeps tracks of all achievements of one player.
Definition: achievements_status.hpp:43
This class updates achievements on an online site.
Definition: web_achievements_status.hpp:34
utility class used to parse XML files
Definition: xml_node.hpp:48
Declares the general types that are used by the network.