- memleak fix and menu fix from MatzeB
[supertux.git] / src / gameloop.h
index 1978de2..43f8ef1 100644 (file)
@@ -1,14 +1,23 @@
-/*
-  gameloop.h
-  
-  Super Tux - Game Loop!
-  
-  by Bill Kendrick & Tobias Glaesser <tobi.web@gmx.de>
-  bill@newbreedsoftware.com
-  http://www.newbreedsoftware.com/supertux/
-  
-  April 11, 2000 - March 15, 2004
-*/
+//  $Id$
+// 
+//  SuperTux
+//  Copyright (C) 2004 Bill Kendrick <bill@newbreedsoftware.com>
+//                     Tobias Glaesser <tobi.web@gmx.de>
+//                     Ingo Ruhnke <grumbel@gmx.de>
+//
+//  This program is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU General Public License
+//  as published by the Free Software Foundation; either version 2
+//  of the License, or (at your option) any later version.
+//
+//  This program is distributed in the hope that it will be useful,
+//  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.
 
 #ifndef SUPERTUX_GAMELOOP_H
 #define SUPERTUX_GAMELOOP_H
@@ -46,6 +55,12 @@ class GameSession
   unsigned int update_time;
   int pause_menu_frame;
   int debug_fps;
+
+  /** If true the end_sequence will be played, user input will be
+      ignored while doing that */
+  bool end_sequenze;
+  float last_x_pos;
+
   bool game_pause;
 
   // FIXME: Hack for restarting the level
@@ -88,6 +103,7 @@ class GameSession
 
  private:
   void on_escape_press();
+  void process_menu();
 };
 
 std::string slotinfo(int slot);