Prevent "Return to Level Editor" from working, if no levelsubset is loaded. This...
[supertux.git] / src / scene.h
index 4038bd0..6beaeb6 100644 (file)
@@ -31,12 +31,19 @@ struct PlayerStatus
   int  score;
   int  distros;
   int  lives;
+  enum BonusType { NO_BONUS, GROWUP_BONUS, FLOWER_BONUS };
+  BonusType bonus;
 
   int  score_multiplier;
 
   PlayerStatus();
+
+  void reset();
 };
 
+std::string bonus_to_string(PlayerStatus::BonusType b);
+PlayerStatus::BonusType string_to_bonus(const std::string& str);
+
 extern PlayerStatus player_status;
 
 extern float scroll_x;