X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fstatistics.h;h=2bd87745e151579a6425f27b3a83ad0203f69e05;hb=ab82bfad847516c0e9af45089f82ccaaefc7a47b;hp=bb123734bd2b3a2e9c1ceaea43687214dc2dcc2d;hpb=e3366884d0487ca6e600f5d5dd5f0deabd782ea7;p=supertux.git diff --git a/src/statistics.h b/src/statistics.h index bb123734b..2bd87745e 100644 --- a/src/statistics.h +++ b/src/statistics.h @@ -20,13 +20,13 @@ #ifndef SUPERTUX_STATISTICS_H #define SUPERTUX_STATISTICS_H -#include "special/timer.h" +#include "timer.h" +#include "lisp/lisp.h" +#include "lisp/writer.h" using namespace SuperTux; namespace SuperTux { -class LispReader; -class LispWriter; class DrawingContext; } @@ -53,9 +53,9 @@ public: ~Statistics(); /// read statistics from lisp file - void parse(LispReader& reader); + void parse(const lisp::Lisp& lisp); /// write statistics to lisp file - void write(LispWriter& writer); + void write(lisp::Writer& writer); /* Draw to the worldmap or a game message */ // TODO: make this functions working @@ -81,7 +81,7 @@ public: private: int stats[NUM_STATS][2]; - Timer timer; + Timer2 timer; int display_stat; };