JNGL
Easy to use cross-platform 2D game library
|
Unlockable Achievement (also called Trophy) More...
#include <jngl/Achievement.hpp>
Public Member Functions | |
Achievement (std::string id, std::string name, std::string description, std::string icon, int initialValue=0, int maxValue=1) | |
int | getValue () const |
void | increaseValue (int by) |
Public Attributes | |
std::string | id |
API Name. | |
std::string | name |
std::string | description |
std::string | icon |
filename for achievement icon, will be loaded when the achievement is displayed | |
int | maxValue |
std::function< int(int)> | customDisplayValue |
Unlockable Achievement (also called Trophy)
Definition at line 15 of file Achievement.hpp.
std::string id |
API Name.
Definition at line 20 of file Achievement.hpp.
std::string name |
Definition at line 22 of file Achievement.hpp.
std::string description |
Definition at line 23 of file Achievement.hpp.
std::string icon |
filename for achievement icon, will be loaded when the achievement is displayed
Definition at line 26 of file Achievement.hpp.
int maxValue |
Definition at line 28 of file Achievement.hpp.
std::function<int(int)> customDisplayValue |
Definition at line 34 of file Achievement.hpp.