be4119b84f03478e74c5ac9ab8effbe3178e54f8
[supertux.git] / src / object / platform.h
1 #ifndef __PLATFORM_H__
2 #define __PLATFORM_H__
3
4 #include "special/moving_object.h"
5 #include "special/sprite.h"
6
7 using namespace SuperTux;
8
9 /**
10  * This class is the base class for platforms that tux can stand on
11  */
12 class Platform : public SuperTux::MovingObject
13 {
14 public:
15   Platform(LispReader& reader);
16   ~Platform();
17
18   virtual HitResponse collision(GameObject& other, const CollisionHit& hit);
19   virtual void action(float elapsed_time);
20   virtual void draw(DrawingContext& context);
21
22 private:
23   int state;
24   Sprite* sprite;
25 };
26
27 #endif
28