| 1 |
#ifndef HEADER_POSTERSCROLLER_H |
| 2 |
#define HEADER_POSTERSCROLLER_H |
| 3 |
|
| 4 |
class Path; |
| 5 |
class Picture; |
| 6 |
|
| 7 |
#include "PosterState.h" |
| 8 |
|
| 9 |
/** |
| 10 |
* Scroll very height picture. |
| 11 |
*/ |
| 12 |
class PosterScroller : public PosterState { |
| 13 |
private: |
| 14 |
static const int SHIFT_SPEED = 4; |
| 15 |
int m_shift; |
| 16 |
int m_screenH; |
| 17 |
protected: |
| 18 |
virtual void own_initState(); |
| 19 |
virtual void own_updateState(); |
| 20 |
public: |
| 21 |
PosterScroller(const Path &picture); |
| 22 |
virtual bool allowBg() const { return true; } |
| 23 |
}; |
| 24 |
|
| 25 |
#endif |