X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fstatistics.h;h=bb123734bd2b3a2e9c1ceaea43687214dc2dcc2d;hb=c06f17a80ab84d8a26bf7c7bb381ad3f15596de8;hp=72250c35bc90fa0bfb94dc77d8eef5143b97fe76;hpb=0acb7e4b13d8f4a61ff354502429b1263b0a831f;p=supertux.git diff --git a/src/statistics.h b/src/statistics.h index 72250c35b..bb123734b 100644 --- a/src/statistics.h +++ b/src/statistics.h @@ -30,12 +30,14 @@ class LispWriter; class DrawingContext; } +#define SPLAYER 0 +#define STOTAL 1 + enum { SCORE_STAT, - BADGUYS_SQUISHED_STAT, - SHOTS_STAT, + COINS_COLLECTED_STAT, + BADGUYS_KILLED_STAT, TIME_NEEDED_STAT, - JUMPS_STAT, NUM_STATS }; @@ -46,6 +48,7 @@ enum { class Statistics { public: + // don't forget to call reset() to init stat Statistics(); ~Statistics(); @@ -64,6 +67,8 @@ public: void set_points(int stat, int points); int get_points(int stat); + void set_total_points(int stat, int points); + /* Reset statistics */ void reset(); @@ -74,7 +79,7 @@ public: void operator+=(const Statistics& o); private: - int stats[NUM_STATS]; + int stats[NUM_STATS][2]; Timer timer; int display_stat;