added jam build system, please try it out - the advantage would be that it already...
[supertux.git] / src / badguy / mriceblock.h
1 #ifndef __MRICEBLOCK_H__
2 #define __MRICEBLOCK_H__
3
4 #include "badguy.h"
5
6 class MrIceBlock : public BadGuy
7 {
8 public:
9   MrIceBlock(LispReader& reader);
10
11   void activate();
12   void write(LispWriter& writer);
13   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
14
15   void active_action(float elapsed_time);
16
17 protected:
18   bool collision_squished(Player& player);
19
20 private:
21   enum IceState {
22     ICESTATE_NORMAL,
23     ICESTATE_FLAT,
24     ICESTATE_KICKED
25   };
26   IceState ice_state;
27   Timer2 flat_timer;
28   int squishcount;
29 };
30
31 #endif
32