#303: Typo fixes from mathnerd314
[supertux.git] / src / object / trampoline.hpp
index f856ca0..6e94f76 100644 (file)
@@ -1,6 +1,6 @@
 //  $Id$
 //
-//  SuperTux - Trampolin
+//  SuperTux - Trampoline
 //  Copyright (C) 2006 Wolfgang Becker <uafr@gmx.de>
 //
 //  This program is free software; you can redistribute it and/or
 
 #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.
+/**
+ * Jumping on a trampoline makes tux jump higher.
  */
-class Trampoline : public MovingSprite, 
-                   public Portable
-                 
+class Trampoline : public Rock
 {
 public:
   Trampoline(const lisp::Lisp& reader);
-  
+
   HitResponse collision(GameObject& other, const CollisionHit& hit);
-  void collision_solid( const CollisionHit& hit );
-  void update( float elapsed_time );
+  void collision_solid(const CollisionHit& hit);
+  void update(float elapsed_time);
+
+  void grab(MovingObject&, const Vector& pos, Direction);
+  void ungrab(MovingObject&, Direction);
+  bool is_portable() const;
 
-  void grab( MovingObject&, const Vector& pos, Direction );
-  void ungrab(MovingObject& , Direction );
-  
 private:
-  Physic physic;
-  bool on_ground;
+  bool portable;
+
 };
 
 #endif
-