fixed a bug, added some debug messages
[supertux.git] / src / badguy / yeti.h
index 3910097..cf36b5a 100644 (file)
@@ -12,12 +12,16 @@ public:
   void write(lisp::Writer& writer);
   void active_action(float elapsed_time);
   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
+  HitResponse collision_player(Player& player, const CollisionHit& hit);
+  HitResponse collision_badguy(BadGuy& badguy, const CollisionHit&);
   bool collision_squished(Player& player);
+  void kill_fall();
 
 private:
   void go_right();
   void go_left();
   void angry_jumping();
+  void stun();
   void drop_stalactite();
   
   enum YetiState {
@@ -25,7 +29,8 @@ private:
     ANGRY_JUMPING,
     THROW_SNOWBALL,
     GO_RIGHT,
-    GO_LEFT
+    GO_LEFT,
+    STUNNED
   };
   enum Side {
     LEFT,
@@ -33,9 +38,12 @@ private:
   };
   Side side;
   YetiState state;
-  Timer2 timer;
+  Timer2 jump_timer;
+  Timer2 stun_timer;
   int jumpcount;
+  float jump_time_left;
   Mix_Chunk* sound_gna;
+  Mix_Chunk* sound_roar;
 };
 
 #endif