projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changing file attr
[supertux.git]
/
src
/
statistics.h
diff --git
a/src/statistics.h
b/src/statistics.h
index
72250c3
..
bb12373
100644
(file)
--- a/
src/statistics.h
+++ b/
src/statistics.h
@@
-30,12
+30,14
@@
class LispWriter;
class DrawingContext;
}
class DrawingContext;
}
+#define SPLAYER 0
+#define STOTAL 1
+
enum {
SCORE_STAT,
enum {
SCORE_STAT,
-
BADGUYS_SQUISH
ED_STAT,
-
SHOTS
_STAT,
+
COINS_COLLECT
ED_STAT,
+
BADGUYS_KILLED
_STAT,
TIME_NEEDED_STAT,
TIME_NEEDED_STAT,
- JUMPS_STAT,
NUM_STATS
};
NUM_STATS
};
@@
-46,6
+48,7
@@
enum {
class Statistics
{
public:
class Statistics
{
public:
+ // don't forget to call reset() to init stat
Statistics();
~Statistics();
Statistics();
~Statistics();
@@
-64,6
+67,8
@@
public:
void set_points(int stat, int points);
int get_points(int stat);
void set_points(int stat, int points);
int get_points(int stat);
+ void set_total_points(int stat, int points);
+
/* Reset statistics */
void reset();
/* Reset statistics */
void reset();
@@
-74,7
+79,7
@@
public:
void operator+=(const Statistics& o);
private:
void operator+=(const Statistics& o);
private:
- int stats[NUM_STATS];
+ int stats[NUM_STATS]
[2]
;
Timer timer;
int display_stat;
Timer timer;
int display_stat;