Removed a global variable
[supertux.git] / src / statistics.hpp
index 7ae61c4..47c9e6c 100644 (file)
@@ -1,6 +1,8 @@
+//  $Id$
 //
-//  SuperTux -  A Jump'n Run
+//  SuperTux (Statistics module)
 //  Copyright (C) 2004 Ricardo Cruz <rick2@aeiou.pt>
+//  Copyright (C) 2006 Ondrej Hosek <ondra.hosek@gmail.com>
 //
 //  This program is free software; you can redistribute it and/or
 //  modify it under the terms of the GNU General Public License
 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 //  GNU General Public License for more details.
-// 
+//
 //  You should have received a copy of the GNU General Public License
 //  along with this program; if not, write to the Free Software
-//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-//  02111-1307, USA.
+//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 #ifndef SUPERTUX_STATISTICS_H
 #define SUPERTUX_STATISTICS_H
 #include "timer.hpp"
 #include "lisp/lisp.hpp"
 #include "lisp/writer.hpp"
-
-class DrawingContext;
+#include "video/surface.hpp"
+#include "video/drawing_context.hpp"
 
 #define SPLAYER 0
 #define STOTAL  1
 
 enum {
-  SCORE_STAT,
+//  SCORE_STAT,
   COINS_COLLECTED_STAT,
   BADGUYS_KILLED_STAT,
   TIME_NEEDED_STAT,
@@ -57,6 +58,7 @@ public:
   // TODO: make this functions working
   void draw_worldmap_info(DrawingContext& context);
   void draw_message_info(DrawingContext& context, std::string title);
+  void draw_endseq_panel(DrawingContext& context, Statistics* best_stats, Surface* backdrop); /**< draw panel shown during level's end sequence */
 
   /* Add / Set / Get points to/from one of the stats this can keep track of */
   void add_points(int stat, int points);
@@ -81,6 +83,4 @@ private:
   int display_stat;
 };
 
-extern Statistics global_stats;
-
 #endif /*SUPERTUX_STATISTICS_H*/