Hacked together a "coin losing" effect when Tux is killed.
[supertux.git] / src / object / player.hpp
index eb5ab8a..d7326cd 100644 (file)
@@ -34,6 +34,7 @@
 #include "display_effect.hpp"
 #include "script_interface.hpp"
 #include "console.hpp"
+#include "coin.hpp"
 
 class BadGuy;
 class Portable;
@@ -79,6 +80,20 @@ extern TuxBodyParts* big_tux;
 extern TuxBodyParts* fire_tux;
 extern TuxBodyParts* ice_tux;
 
+class FallingCoin : public GameObject
+{
+public:
+  FallingCoin(const Vector& start_position, const int x_vel);
+  ~FallingCoin();
+
+  void draw(DrawingContext& context);
+  void update(float elapsed_time);
+private:
+  Vector  pos;
+  Sprite* sprite;
+  Physic  physic;
+};
+
 class Player : public MovingObject, public Scripting::Player, public ScriptInterface
 {
 public: