00001 #ifndef HEADER_POSTERSCROLLER_H 00002 #define HEADER_POSTERSCROLLER_H 00003 00004 class Path; 00005 class Picture; 00006 00007 #include "PosterState.h" 00008 00009 /** 00010 * Scroll very height picture. 00011 */ 00012 class PosterScroller : public PosterState { 00013 private: 00014 static const int SHIFT_SPEED = 4; 00015 int m_shift; 00016 int m_screenH; 00017 protected: 00018 virtual void own_initState(); 00019 virtual void own_updateState(); 00020 public: 00021 PosterScroller(const Path &picture); 00022 virtual bool allowBg() const { return true; } 00023 }; 00024 00025 #endif