Fix issue with action not being updated when typing grow()/fire()/etc in console...
[supertux.git] / src / object / endsequence.hpp
index 25e2acd..f7ac647 100644 (file)
@@ -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