Badguys that die will still trigger collisions during the current frame (closes issue 50)
[supertux.git] / src / badguy / treewillowisp.hpp
index 58805e4..c95cbc8 100644 (file)
@@ -37,7 +37,8 @@ public:
    * make TreeWillOWisp vanish
    */
   void vanish();
-  void start_sucking();
+  void start_sucking(Vector suck_target);
+  bool was_sucked;
 
   void active_update(float elapsed_time);
   void set_color(const Color& color);
@@ -47,6 +48,8 @@ public:
   virtual bool is_freezable() const { return false; }
   virtual void kill_fall() { vanish(); }
 
+  virtual void draw(DrawingContext& context);
+
 protected:
   virtual bool collides(GameObject& other, const CollisionHit& hit);
   HitResponse collision_player(Player& player, const CollisionHit& hit);
@@ -65,6 +68,8 @@ private:
   std::auto_ptr<SoundSource> sound_source;
   Vector     treepos_delta;
   GhostTree* tree;
+
+  Vector suck_target;
 };
 
 #endif