- memleak fix and menu fix from MatzeB
[supertux.git] / src / scene.cpp
index aab4d21..fc29077 100644 (file)
@@ -1,40 +1,40 @@
+//  $Id$
 //
-// C Implementation: scene
+//  SuperTux -  A Jump'n Run
+//  Copyright (C) 2003 Tobias Glaesser <tobi.web@gmx.de>
 //
-// Description: 
-//
-//
-// Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
-//
-// Copyright: See COPYING file that comes with this distribution
+//  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.
 
 #include <stdlib.h>
 #include "scene.h"
+#include "defines.h"
 
-int score;
-int distros;
-int level;
-int next_level;
-int score_multiplier;
-bool counting_distros;
-int distro_counter;
-timer_type  super_bkgd_timer;
+PlayerStatus player_status;
+
+PlayerStatus::PlayerStatus()
+  : score(0),
+    distros(0),
+    lives(START_LIVES),
+    score_multiplier(1)
+{
+}
 
 // FIXME: Move this into a view class
 float scroll_x;
 
 unsigned int global_frame_counter;
 
-texture_type img_box_full;
-texture_type img_box_empty;
-texture_type img_mints;
-texture_type img_coffee;
-texture_type img_super_bkgd;
-texture_type img_red_glow;
-timer_type time_left;
-double frame_ratio;
-
 // EOF //