Added new "Explosion" object
[supertux.git] / src / badguy / yeti.hpp
index f1b7504..cfc6d05 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef __YETI_H__
 #define __YETI_H__
 
+#include <memory>
+
 #include "badguy.hpp"
 
 class Yeti : public BadGuy
@@ -38,7 +40,7 @@ public:
   void kill_squished(GameObject& object);
   void kill_fall();
 
-  virtual Yeti* clone() const { return new Yeti(*this); }
+  virtual Yeti* clone() const { return new Yeti((Yeti&)*this); }
 
 private:
   void run();
@@ -48,6 +50,8 @@ private:
   void summon_snowball();
   void jump_down();
 
+  void draw_hit_points(DrawingContext& context);
+
   void take_hit(Player& player);
 
   enum YetiState {
@@ -62,6 +66,7 @@ private:
   Timer safe_timer;
   int stomp_count;
   int hit_points;
+  std::auto_ptr<Surface> hud_head;
 };
 
 #endif