qmax patch to fix bug #0000389 - colors in infoblocks
[supertux.git] / src / badguy / dispenser.hpp
index c01e19e..1066078 100644 (file)
@@ -29,17 +29,29 @@ public:
   Dispenser(const lisp::Lisp& reader);
 
   void activate();
+  void deactivate();
   void write(lisp::Writer& writer);
   void active_update(float elapsed_time);
 
+  void freeze();
+  void unfreeze();
+  bool is_freezable() const;
+
   virtual Dispenser* clone() const { return new Dispenser(*this); }
 
 protected:
-  bool collision_squished(Player& player);
+  bool collision_squished(GameObject& object);
+  HitResponse collision(GameObject& other, const CollisionHit& hit);
   void launch_badguy();
   float cycle;
-  std::string badguy;
+  std::vector<std::string> badguys;
+  unsigned int next_badguy;
   Timer dispense_timer;
+  bool autotarget;
+  bool swivel;
+  bool broken;
+  bool random;
+  std::string type;
 };
 
 #endif