X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fobject%2Fendsequence.hpp;h=f7ac6476e790b4172669537bfc1dc1c9b4779108;hb=ae7bd4f460fdd93934fc0abc9589758a49309bda;hp=25e2acdf09dd7701d4b2100fb81e322d51b79759;hpb=9bf5386f1d1b84b5290bb015e1ede6d1745d5e61;p=supertux.git diff --git a/src/object/endsequence.hpp b/src/object/endsequence.hpp index 25e2acdf0..f7ac6476e 100644 --- a/src/object/endsequence.hpp +++ b/src/object/endsequence.hpp @@ -25,7 +25,6 @@ #include "timer.hpp" #include "lisp/lisp.hpp" #include "control/codecontroller.hpp" -#include "direction.hpp" class EndSequence : public GameObject { @@ -36,7 +35,7 @@ public: virtual void update(float elapsed_time); virtual void draw(DrawingContext& context); - void start(Direction dir); /**< play EndSequence */ + void start(); /**< play EndSequence */ void stop_tux(); /**< called when Tux has reached his final position */ void stop(); /**< stop playing EndSequence, mark it as done playing */ bool is_tux_stopped(); /**< returns true if Tux has reached his final position */ @@ -47,15 +46,11 @@ protected: virtual void running(float elapsed_time); /**< called while the EndSequence is running */ virtual void stopping(); /**< called when EndSequence stops */ - CodeController* end_sequence_controller; - float last_x_pos; - Timer endsequence_timer; - -private: bool isrunning; /**< true while EndSequence plays */ bool isdone; /**< true if EndSequence has finished playing */ bool tux_may_walk; /**< true while tux is allowed to walk */ - Direction walk_dir; /**< direction in which Tux should walk */ + CodeController* end_sequence_controller; + }; #endif