- moved loadshared() to the right point
[supertux.git] / src / gameloop.h
index dc1e3c1..27f6ce1 100644 (file)
@@ -36,8 +36,8 @@ class GameSession
 {
  private:
   bool quit;
-  timer_type fps_timer;
-  timer_type frame_timer;
+  Timer fps_timer;
+  Timer frame_timer;
   World* world;
   int st_gl_mode;
 
@@ -53,6 +53,8 @@ class GameSession
   int levelnb;
 
  public:
+  Timer time_left;
+
   GameSession();
   GameSession(const std::string& filename);
   GameSession(const std::string& subset, int levelnb, int mode);
@@ -62,7 +64,7 @@ class GameSession
   int  run();
 
   void draw();
-  int  action();
+  int  action(double frame_ratio);
 
   Level* get_level() { return world->get_level(); }
   World* get_world() { return world; }