X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Frock.hpp;h=86a8e0e1bdae8f741021fb627d372beac382ce32;hb=a98f7cee9f6a2593c0e1f3442800f159bad410df;hp=5bbc5143b242054e81ff7770fcf1f078583226b4;hpb=85016783ff1628b7de20e0c106cf55563aa77bed;p=supertux.git diff --git a/src/object/rock.hpp b/src/object/rock.hpp index 5bbc5143b..86a8e0e1b 100644 --- a/src/object/rock.hpp +++ b/src/object/rock.hpp @@ -28,9 +28,10 @@ class Sprite; -class Rock : public MovingSprite, public Portable, public Serializable +class Rock : public MovingSprite, public Portable, protected UsesPhysic, public Serializable { public: + Rock(const Vector& pos, std::string spritename); Rock(const lisp::Lisp& reader); Rock(const lisp::Lisp& reader, std::string spritename); virtual Rock* clone() const { return new Rock(*this); } @@ -43,10 +44,10 @@ public: void grab(MovingObject& object, const Vector& pos, Direction dir); void ungrab(MovingObject& object, Direction dir); -private: +protected: bool on_ground; bool grabbed; - Physic physic; + Vector last_movement; }; #endif