00001 // SuperTux - End Sequence: Tux walks right 00002 // Copyright (C) 2007 Christoph Sommer <christoph.sommer@2006.expires.deltadevelopment.de> 00003 // 00004 // This program is free software: you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation, either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 00017 #ifndef HEADER_SUPERTUX_OBJECT_ENDSEQUENCE_WALKRIGHT_HPP 00018 #define HEADER_SUPERTUX_OBJECT_ENDSEQUENCE_WALKRIGHT_HPP 00019 00020 #include "object/endsequence.hpp" 00021 #include "supertux/timer.hpp" 00022 00023 class EndSequenceWalkRight : public EndSequence 00024 { 00025 public: 00026 EndSequenceWalkRight(); 00027 virtual ~EndSequenceWalkRight(); 00028 virtual void draw(DrawingContext& context); 00029 00030 protected: 00031 virtual void starting(); 00032 virtual void running(float elapsed_time); 00033 virtual void stopping(); 00035 private: 00036 float last_x_pos; 00037 Timer endsequence_timer; 00038 }; 00039 00040 #endif 00041 00042 /* EOF */