eliminated global scroll_x and scroll_y variables
[supertux.git] / src / scene.cpp
index c75f02d..0ee4d1c 100644 (file)
@@ -32,6 +32,15 @@ PlayerStatus::PlayerStatus()
 {
 }
 
+void PlayerStatus::reset()
+{
+  score = 0;
+  distros = 0;
+  lives = START_LIVES;
+  bonus = NO_BONUS;
+  score_multiplier = 1;
+}
+
 std::string bonus_to_string(PlayerStatus::BonusType b)
 {
   switch (b)
@@ -59,9 +68,6 @@ PlayerStatus::BonusType string_to_bonus(const std::string& str)
     return PlayerStatus::NO_BONUS;
 }
 
-// FIXME: Move this into a view class
-float scroll_x;
-
 unsigned int global_frame_counter;
 
 // EOF //