| 1 |
#ifndef _CEFFECT_ |
| 2 |
#define _CEFFECT_ |
| 3 |
|
| 4 |
#include "CTimer.h" |
| 5 |
#include "CTimedEvent.h" |
| 6 |
|
| 7 |
//! Abstract base class for an effect |
| 8 |
/*! An effect can only modify the surface given to it. |
| 9 |
It does not create any new surfaces. |
| 10 |
*/ |
| 11 |
class CEffect : public CTimedEvent |
| 12 |
{ |
| 13 |
public: |
| 14 |
|
| 15 |
// virtual void blit(CSurface& dest, int x, int y); //! draw the "effected" surface |
| 16 |
|
| 17 |
//virtual bool hasImage() { return true; } |
| 18 |
//virtual CSurface* getImage() { return &fx; } |
| 19 |
|
| 20 |
enum Effects |
| 21 |
{ |
| 22 |
BLACK, |
| 23 |
NUMEFFECTS |
| 24 |
}; |
| 25 |
protected: |
| 26 |
CEffect(int ticksPerFrame, bool concurrent); |
| 27 |
}; |
| 28 |
|
| 29 |
#endif |