#include "timer.hpp"
#include "lisp/lisp.hpp"
#include "control/codecontroller.hpp"
-#include "direction.hpp"
class EndSequence : public GameObject
{
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 */
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