Platform that hurts Tux and Badguys when touched
[supertux.git] / src / object / star.hpp
index 5cd409f..d0eed7c 100644 (file)
 #ifndef __STAR_H__
 #define __STAR_H__
 
-#include "moving_object.hpp"
-#include "sprite/sprite.hpp"
+#include "object/moving_sprite.hpp"
 #include "physic.hpp"
 
-class Star : public MovingObject
+class Star : public MovingSprite
 {
 public:
   Star(const Vector& pos);
-  ~Star();
+  virtual Star* clone() const { return new Star(*this); }
 
   virtual void update(float elapsed_time);
-  virtual void draw(DrawingContext& context);
   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
 
 private:
-  Sprite* sprite;
   Physic physic;
 };