Changed jump behaviour: Tux will now jump even if the button was pressed (up to)...
[supertux.git] / src / object / portable.hpp
index d3a2aef..721879d 100644 (file)
 class Portable
 {
 public:
-  Portable(bool portable = false) :
-    portable(portable)
-  {
-  }
   virtual ~Portable()
   { }
 
@@ -48,20 +44,10 @@ public:
   virtual void ungrab(MovingObject& , Direction )
   {}
 
-  // --- BEGIN METHODS TO EXPOSE TO SQUIRREL --- //
-  void set_portable(bool portable)
-  {
-    this->portable = portable;
-  }
-
-  bool is_portable() const
+  virtual bool is_portable() const
   {
-    return portable;
+    return true;
   }
-  // --- END METHODS TO EXPOSE TO SQUIRREL --- //
-
-private:
-  bool portable; /**< true if this object can currently be carried */
 };
 
 #endif