19#ifndef __HEADER_ONLINE_PROFILE_ACHIEVEMENTS_HPP__
20#define __HEADER_ONLINE_PROFILE_ACHIEVEMENTS_HPP__
25#include "achievements/achievement.hpp"
26#include "guiengine/screen.hpp"
27#include "guiengine/widgets.hpp"
28#include "states_screens/online/online_profile_base.hpp"
29#include "online/profile_manager.hpp"
46 int m_selected_achievement_index;
47 bool m_waiting_for_achievements;
71 virtual
void eventCallback(
GUIEngine::Widget* widget, const std::
string& name, const
int playerID) OVERRIDE;
74 virtual
void init() OVERRIDE;
76 virtual
void onUpdate(
float delta) OVERRIDE;
79 virtual
void onColumnClicked(
int column_id,
bool sort_desc,
bool sort_default) OVERRIDE;
82 virtual
void refreshAchievementsList()
84 m_waiting_for_achievements =
true;
Definition: achievement.hpp:42
Online profiel overview screen.
Definition: online_profile_achievements.hpp:41
virtual void beforeAddingWidget() OVERRIDE
Callback before widgets are added.
Definition: online_profile_achievements.cpp:72
virtual void eventCallback(GUIEngine::Widget *widget, const std::string &name, const int playerID) OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_profile_achievements.cpp:122
bool goalSort(Achievement *a, Achievement *b)
True if a's goal progression is <= to b's.
Definition: online_profile_achievements.cpp:275
virtual void init() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_profile_achievements.cpp:92
void displayResults()
Displays the achievements from a given profile.
Definition: online_profile_achievements.cpp:178
virtual void onUpdate(float delta) OVERRIDE
Called every frame.
Definition: online_profile_achievements.cpp:307
virtual void loadedFromFile() OVERRIDE
implement callback from parent class GUIEngine::Screen
Definition: online_profile_achievements.cpp:60
bool progressSort(Achievement *a, Achievement *b)
True if a's single-goal progress is <= to b's.
Definition: online_profile_achievements.cpp:288
int m_sort_column
Which column to use for sorting.
Definition: online_profile_achievements.hpp:50
Declares a class to be a singleton.
Definition: screen.hpp:59
Online profiel overview screen.
Definition: online_profile_achievements.hpp:112
Online profile base screen.
Definition: online_profile_base.hpp:38
Online profiel overview screen.
Definition: online_profile_achievements.hpp:95
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33