Tried fixing portability issue
[supertux.git] / src / object / flower.hpp
index 637f1a9..46a2e6c 100644 (file)
 #include "moving_object.hpp"
 #include "sprite/sprite.hpp"
 #include "physic.hpp"
+#include "player_status.hpp"
 
 class Flower : public MovingObject
 {
 public:
-  enum Type {
-    FIREFLOWER, ICEFLOWER
-  };
-  Flower(Type type);
+  Flower(BonusType type);
   ~Flower();
 
   virtual void update(float elapsed_time);
@@ -38,9 +36,8 @@ public:
   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
 
 private:
-  Type type;
+  BonusType type;
   Sprite* sprite;
 };
 
 #endif
-