Bug 508: Make PlayerStatus::reset reset displayed_coins.
[supertux.git] / src / supertux / player_status.hpp
index 3f46b53..2ad2836 100644 (file)
@@ -23,8 +23,7 @@
 #include "util/reader_fwd.hpp"
 #include "util/writer_fwd.hpp"
 #include "video/color.hpp"
-
-class Surface;
+#include "video/surface_ptr.hpp"
 
 static const float BORDER_X = 10;
 static const float BORDER_Y = 10;
@@ -35,7 +34,7 @@ enum BonusType {
 class DrawingContext;
 
 /**
- * This class memorizes player status between different game sessions (for
+ * This class keeps player status between different game sessions (for
  * example when switching maps in the worldmap)
  */
 class PlayerStatus
@@ -59,7 +58,9 @@ public:
   int max_ice_bullets; /**< maximum number of ice bullets in play */
 
 private:
-  std::auto_ptr<Surface> coin_surface;
+  int displayed_coins;
+  int displayed_coins_frame;
+  SurfacePtr coin_surface;
 
 private:
   PlayerStatus(const PlayerStatus&);