Rolled back bomb to old behaviour, some bomb gfx tuning
[supertux.git] / src / badguy / darttrap.hpp
index dce5778..da18766 100644 (file)
@@ -1,7 +1,7 @@
-//  $Id: darttrap.hpp 3327 2006-04-13 15:02:40Z sommer $
+//  $Id$
 //
 //  DartTrap - Shoots a Dart at regular intervals
-//  Copyright (C) 2006 Christoph Sommer <supertux@2006.expires.deltadevelopment.de>
+//  Copyright (C) 2006 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de>
 //
 //  This program is free software; you can redistribute it and/or
 //  modify it under the terms of the GNU General Public License
@@ -31,11 +31,14 @@ class DartTrap : public BadGuy
 public:
   DartTrap(const lisp::Lisp& reader);
 
+  void initialize();
   void activate();
   void write(lisp::Writer& writer);
   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 +46,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 +56,3 @@ protected:
 };
 
 #endif
-