Made code using fireworks sound effect.
[supertux.git] / src / gameloop.h
index d82c8a3..1efa4a3 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "special/timer.h"
 #include "special/base.h"
+#include "special/frame_rate.h"
 
 using namespace SuperTux;
 
@@ -64,10 +65,8 @@ private:
   int st_gl_mode;
   int levelnb;
   float fps_fps;
-  unsigned int last_update_time;
-  unsigned int update_time;
+  FrameRate frame_rate;
   int pause_menu_frame;
-  int debug_fps;
 
   /** If true the end_sequence will be played, user input will be
       ignored while doing that */
@@ -116,6 +115,11 @@ public:
 private:
   static GameSession* current_;
 
+  // for cheating
+  std::string last_keys;
+  // for fire works
+  Timer random_timer;
+
   void restart_level();
 
   void check_end_conditions();
@@ -127,7 +131,6 @@ private:
   void drawendscreen();
   void drawresultscreen(void);
 
-private:
   void on_escape_press();
   void process_menu();
 };