-german translation updates
[supertux.git] / src / object / rock.h
1 #ifndef __ROCK_H__
2 #define __ROCK_H__
3
4 #include "special/moving_object.h"
5 #include "math/physic.h"
6 #include "lisp/lisp.h"
7 #include "portable.h"
8 #include "serializable.h"
9
10 namespace SuperTux {
11   class Sprite;
12 }
13
14 class Rock : public MovingObject, public Portable, public Serializable
15 {
16 public:
17   Rock(const lisp::Lisp& reader);
18   virtual ~Rock();
19
20   HitResponse collision(GameObject& other, const CollisionHit& hit);
21   void action(float elapsed_time);
22   void draw(DrawingContext& context);
23   void write(lisp::Writer& writer);
24     
25   void grab(MovingObject& object, const Vector& pos);
26
27 private:
28   bool grabbed;
29   Sprite* sprite;
30   Physic physic;
31 };
32
33 #endif