use the tree sounds
[supertux.git] / src / badguy / darttrap.hpp
index d3598b8..7f2b80e 100644 (file)
@@ -36,6 +36,8 @@ public:
   void active_update(float elapsed_time);
   HitResponse collision_player(Player& player, const CollisionHit& hit);
 
+  virtual DartTrap* clone() const { return new DartTrap(*this); }
+
 protected:
   enum State {
     IDLE, LOADING
@@ -43,9 +45,7 @@ protected:
 
   void load(); /**< load a shot */
   void fire(); /**< fire a shot */
-  
-  bool set_direction;
-  Direction initial_direction;  
+
   float initial_delay; /**< time to wait before firing first shot */
   float fire_delay; /**< reload time */
   int ammo; /**< ammo left (-1 means unlimited) */
@@ -55,4 +55,3 @@ protected:
 };
 
 #endif
-