X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdoor.h;h=50d01389974df37d63f89c59802f266f2a5ec3c1;hb=c06f17a80ab84d8a26bf7c7bb381ad3f15596de8;hp=d5990fbec794620aacec9f4acd2751e047dabd8c;hpb=cc44de029066f2cfec1e6c50500f099443586293;p=supertux.git diff --git a/src/door.h b/src/door.h index d5990fbec..50d013899 100644 --- a/src/door.h +++ b/src/door.h @@ -22,20 +22,27 @@ #include +#include "video/surface.h" #include "interactive_object.h" #include "serializable.h" -#include "timer.h" - -#define ANIM_TIME 1500 +#include "special/timer.h" +namespace SuperTux { class Sprite; - class LispReader; +} + +/** data images */ +#define DOOR_OPENING_TIME 1500 +#define DOOR_OPENING_FRAMES 8 +extern Sprite* door; +extern Surface* door_opening[DOOR_OPENING_FRAMES]; class Door : public InteractiveObject, public Serializable { public: Door(LispReader& reader); + Door(int x, int y); virtual ~Door(); virtual void write(LispWriter& writer); @@ -45,7 +52,6 @@ public: virtual void interaction(InteractionType type); private: - Sprite* sprite; std::string target_sector; std::string target_spawnpoint; Timer animation_timer; //Used for door animation