added object remove_listener so that you can get a message if some objects are remove...
[supertux.git] / src / object / star.h
1 #ifndef __STAR_H__
2 #define __STAR_H__
3
4 #include "special/moving_object.h"
5 #include "special/sprite.h"
6 #include "math/physic.h"
7
8 using namespace SuperTux;
9
10 class Star : public MovingObject
11 {
12 public:
13   Star(const Vector& pos);
14   ~Star();
15
16   virtual void action(float elapsed_time);
17   virtual void draw(DrawingContext& context);
18   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
19
20 private:
21   Sprite* sprite;
22   Physic physic;
23 };
24
25 #endif