Flesh out the intro scene some more.
[supertux.git] / src / object / coin.hpp
index f0cd6c8..132a472 100644 (file)
@@ -18,6 +18,7 @@
 #define HEADER_SUPERTUX_OBJECT_COIN_HPP
 
 #include "object/moving_sprite.hpp"
+#include "supertux/physic.hpp"
 
 class Path;
 class PathWalker;
@@ -40,6 +41,20 @@ private:
   boost::shared_ptr<PathWalker> walker;
   Vector offset;
   bool from_tilemap;
+  Physic physic;
+};
+
+class HeavyCoin : public Coin
+{
+public:
+  HeavyCoin(const Vector& pos, const Vector& init_velocity);
+  HeavyCoin(const Reader& reader);
+
+  virtual void update(float elapsed_time);
+  virtual void collision_solid(const CollisionHit& hit);
+
+private:
+  Physic physic;
 };
 
 #endif