SDL: Implement lightmaps smaller than the screen size. LIGHTMAP_DIV is calculated...
[supertux.git] / src / object / trampoline.hpp
index df751d8..c7653c0 100644 (file)
 
 #include "moving_sprite.hpp"
 #include "lisp/lisp.hpp"
-#include "object/portable.hpp"
-#include "physic.hpp"
+#include "object/rock.hpp"
 
 /**
  * Jumping on a trampolin makes tux jump higher.
  */
-class Trampoline : public MovingSprite, public Portable
+class Trampoline : public Rock
 {
 public:
   Trampoline(const lisp::Lisp& reader);
@@ -37,15 +36,13 @@ public:
   void collision_solid(const CollisionHit& hit);
   void update(float elapsed_time);
 
-  void grab( MovingObject&, const Vector& pos, Direction );
-  void ungrab(MovingObject& , Direction );
+  void grab(MovingObject&, const Vector& pos, Direction);
+  void ungrab(MovingObject&, Direction);
   bool is_portable() const;
 
 private:
-  Physic physic;
-  bool on_ground;
   bool portable;
-  bool grabbed;
+
 };
 
 #endif