Go to the documentation of this file.
26 #ifndef ACHIEVEMENTS_H_
27 #define ACHIEVEMENTS_H_
68 bool update(
const u_int8 & bit);
110 static bool create(
const u_int8 & achievement,
const u_int32 & bitmask);
121 static void update(
const u_int8 & achievement,
const u_int8 & bit);
133 static int num_unlocked ();
140 static bool is_unlocked (
const u_int32 & index);
157 static void py_signal_connect (PyObject *pyfunc, PyObject *args = NULL);
182 static void make_persistent();
194 static vector<achievement_data> _achievements;
Data for a single achievement.
Class to read data from a Gzip compressed file.
#define u_int32
32 bits long unsigned integer
bool is_unlocked() const
Check whether the achievement is permanently unlocked.
Class to write data from a Gzip compressed file.
#define u_int8
8 bits long unsigned integer
Declares the igzstream, ogzstream and fileops classes.
static int num_achievements()
Return the total number of available achievements.
u_int8 id() const
Get the unique id of the achievement.
Class that keeps track of all available achievements, their permanent unlocked state and state in the...
Stores the C++ <-> Python callback binding.
Declares the py_callback class.