X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fportable.hpp;h=721879d6ae3191b238dcb1d9a5f50de1e95c07c4;hb=ae7bd4f460fdd93934fc0abc9589758a49309bda;hp=492eaa3f0a7b370c7cbb48ba53430e20417ce00c;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/object/portable.hpp b/src/object/portable.hpp index 492eaa3f0..721879d6a 100644 --- a/src/object/portable.hpp +++ b/src/object/portable.hpp @@ -22,6 +22,7 @@ #include "moving_object.hpp" #include "direction.hpp" +#include "refcounter.hpp" /** * An object that inherits from this object is considered "portable" and can @@ -34,7 +35,7 @@ class Portable public: virtual ~Portable() { } - + /** * called each frame when the object has been grabbed. */ @@ -42,6 +43,11 @@ public: virtual void ungrab(MovingObject& , Direction ) {} + + virtual bool is_portable() const + { + return true; + } }; #endif