Merged gravity patch by T. Goya
[supertux.git] / src / object / powerup.hpp
index 5ed2b49..4779db1 100644 (file)
@@ -25,7 +25,7 @@
 #include "collision_hit.hpp"
 #include "physic.hpp"
 
-class PowerUp : public MovingSprite
+class PowerUp : public MovingSprite, private UsesPhysic
 {
 public:
   PowerUp(const lisp::Lisp& lisp);
@@ -35,7 +35,6 @@ public:
   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
 
 private:
-  Physic physic;
   std::string script;
   bool no_physics;
 };