Patchs by Matt McCutche to fix Treeboss related Bugs 469 and 504.
[supertux.git] / src / badguy / darttrap.hpp
index 09ac5fd..da18766 100644 (file)
@@ -1,7 +1,7 @@
 //  $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,6 +31,7 @@ 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);
@@ -45,17 +46,13 @@ 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) */
 
   State state; /**< current state */
   Timer fire_timer; /**< time until new shot is fired */
-  std::string direction;
 };
 
 #endif
-