X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fbadguy%2Fdarttrap.hpp;h=da187668b11370960b235d99368b1cf4287173e9;hb=013a5ca196545a094f27c1b708facd0084d58d55;hp=09ac5fdad787d668b9e7d81194b4b8719586fa2e;hpb=12966e3f986f7202125ae590c74a4d0c227441dd;p=supertux.git diff --git a/src/badguy/darttrap.hpp b/src/badguy/darttrap.hpp index 09ac5fdad..da187668b 100644 --- a/src/badguy/darttrap.hpp +++ b/src/badguy/darttrap.hpp @@ -1,7 +1,7 @@ // $Id$ // // DartTrap - Shoots a Dart at regular intervals -// Copyright (C) 2006 Christoph Sommer +// Copyright (C) 2006 Christoph Sommer // // 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 -