X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fstatistics.h;h=430e2161efb18182231bf61ef0005af4ecf22dca;hb=58da7bdf7b352989ef19d89a498938a12ca91b03;hp=9f1533236406b2e0cdc2aedb9e068e6ba4210cff;hpb=d46c78c842ab4090a3f46e560c891234167f124b;p=supertux.git diff --git a/src/statistics.h b/src/statistics.h index 9f1533236..430e2161e 100644 --- a/src/statistics.h +++ b/src/statistics.h @@ -21,14 +21,10 @@ #define SUPERTUX_STATISTICS_H #include "timer.h" +#include "lisp/lisp.h" +#include "lisp/writer.h" -using namespace SuperTux; - -namespace SuperTux { -class LispReader; -class LispWriter; class DrawingContext; -} #define SPLAYER 0 #define STOTAL 1 @@ -53,9 +49,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 +77,7 @@ public: private: int stats[NUM_STATS][2]; - Timer2 timer; + Timer timer; int display_stat; };