SuperTuxKart
Loading...
Searching...
No Matches
web_achievements_status.hpp
1//
2// SuperTuxKart - a fun racing game with go-kart
3// Copyright (C) 2013-2015 Glenn De Jonghe
4// (C) 2014-2015 Joerg Henrichs
5//
6// This program is free software; you can redistribute it and/or
7// modify it under the terms of the GNU General Public License
8// as published by the Free Software Foundation; either version 3
9// of the License, or (at your option) any later version.
10//
11// This program is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with this program; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20#ifndef HEADER_WEB_ACHIEVEMENTS_STATUS_HPP
21#define HEADER_WEB_ACHIEVEMENTS_STATUS_HPP
22
23#include "achievements/achievement_info.hpp"
24#include <map>
25
27
28// ============================================================================
34{
35private:
36
37#ifdef GAMERZILLA
38 int m_game_id;
39#endif
40public:
41
42 WebAchievementsStatus(int version, std::map<uint32_t, AchievementInfo *> &info);
43 virtual ~WebAchievementsStatus();
44
46 void achieved(AchievementInfo *info);
47
48#ifdef GAMERZILLA
49 int getGameID() const { return m_game_id; }
50#endif
51}; // class Achievement
52#endif
This class stores an achievement definition from the xml file, including title, description,...
Definition: achievement_info.hpp:41
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
void updateAchievementsProgress(AchievementsStatus *status)
Checks for an updates to achievements progress.
Definition: web_achievements_status.cpp:70
void achieved(AchievementInfo *info)
Sets an achievement.
Definition: web_achievements_status.cpp:88