had more changes lying around here
[supertux.git] / src / badguy / stalactite.h
1 #ifndef __STALACTITE_H__
2 #define __STALACTITE_H__
3
4 #include "badguy.h"
5
6 class Stalactite : public BadGuy
7 {
8 public:
9   Stalactite(const lisp::Lisp& reader);
10  
11   void active_action(float elapsed_time);
12   void write(lisp::Writer& writer);
13   HitResponse collision_solid(GameObject& other, const CollisionHit& hit);
14   HitResponse collision_player(Player& player, const CollisionHit& hit);
15
16   void kill_fall();
17   void draw(DrawingContext& context);
18   void deactivate();
19
20 private:
21   Timer2 timer;
22
23   enum StalactiteState {
24     STALACTITE_HANGING,
25     STALACTITE_SHAKING,
26     STALACTITE_FALLING,
27     STALACTITE_SQUISHED
28   };
29   StalactiteState state;
30 };
31
32 #endif
33