-TreeWillOWisp::TreeWillOWisp(const Vector& pos, float radius, float speed)
- : BadGuy(pos, "images/creatures/willowisp/willowisp.sprite",
- LAYER_OBJECTS - 20), mystate(STATE_DEFAULT)
+#include "audio/sound_manager.hpp"
+#include "audio/sound_source.hpp"
+#include "badguy/ghosttree.hpp"
+#include "object/lantern.hpp"
+#include "object/player.hpp"
+#include "sprite/sprite.hpp"
+
+#include <math.h>
+
+static const std::string TREEWILLOSOUND = "sounds/willowisp.wav";
+static const float SUCKSPEED = 25;
+
+TreeWillOWisp::TreeWillOWisp(GhostTree* tree, const Vector& pos,
+ float radius, float speed) :
+ BadGuy(tree->get_pos() + pos, "images/creatures/willowisp/willowisp.sprite",
+ LAYER_OBJECTS - 20),
+ was_sucked(false),
+ mystate(STATE_DEFAULT),
+ color(),
+ angle(),
+ radius(),
+ speed(),
+ sound_source(),
+ tree(tree),
+ suck_target()