The BIG COMMIT(tm)
[supertux.git] / src / object / flower.h
1 #ifndef __FLOWER_H__
2 #define __FLOWER_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 Flower : public MovingObject
11 {
12 public:
13   enum Type {
14     FIREFLOWER, ICEFLOWER
15   };
16   Flower(const Vector& pos, Type type);
17   ~Flower();
18
19   virtual void action(float elapsed_time);
20   virtual void draw(DrawingContext& context);
21   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
22
23 private:
24   Type type;
25   Sprite* sprite;
26 };
27
28 #endif
29