| 1 |
#ifndef HEADER_EFFECTZX_H |
| 2 |
#define HEADER_EFFECTZX_H |
| 3 |
|
| 4 |
#include "ViewEffect.h" |
| 5 |
|
| 6 |
/** |
| 7 |
* Blinking like ZX spectrum loading. |
| 8 |
*/ |
| 9 |
class EffectZx : public ViewEffect { |
| 10 |
private: |
| 11 |
enum eCorner { |
| 12 |
ZX1 = 1, |
| 13 |
ZX2 = 2, |
| 14 |
ZX3 = 3, |
| 15 |
ZX4 = 4 |
| 16 |
}; |
| 17 |
static const double STRIPE_STANDARD; |
| 18 |
static const double STRIPE_NARROW; |
| 19 |
int m_zx; |
| 20 |
int m_phase; |
| 21 |
double m_countHeight; |
| 22 |
double m_stripeHeight; |
| 23 |
public: |
| 24 |
EffectZx(); |
| 25 |
static const char *NAME; |
| 26 |
virtual const char* getName() const { return NAME; } |
| 27 |
virtual void updateEffect(); |
| 28 |
virtual void blit(SDL_Surface *screen, SDL_Surface *surface, |
| 29 |
int x, int y); |
| 30 |
}; |
| 31 |
|
| 32 |
#endif |