some cleanups in the sprite class, increased delta for collision response
[supertux.git] / src / object / coin.h
1 #ifndef __COIN_H__
2 #define __COIN_H__
3
4 #include "special/moving_object.h"
5
6 namespace SuperTux {
7   class Sprite;
8 }
9
10 using namespace SuperTux;
11
12 class Coin : public MovingObject
13 {
14 public:
15   Coin(const Vector& pos);
16   ~Coin();
17
18   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
19   virtual void action(float elapsed_time);
20   virtual void draw(DrawingContext& context);
21
22   void collect();
23
24 private:
25   Sprite* sprite;
26 };
27
28 #endif
29