Fixed code that broke due to changes to Rectf and Sizef
[supertux.git] / src / object / coin.hpp
index 467830a..132a472 100644 (file)
 #define HEADER_SUPERTUX_OBJECT_COIN_HPP
 
 #include "object/moving_sprite.hpp"
+#include "supertux/physic.hpp"
 
+class Path;
+class PathWalker;
 class TileMap;
 
 class Coin : public MovingSprite
@@ -38,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