Oodle/src/CBlackEffect.h
raw| 1 | #ifndef _CBLACKEFFECT_ |
| 2 | #define _CBLACKEFFECT_ |
| 3 | |
| 4 | #include "CEffectSurface.h" |
| 5 | |
| 6 | class CBlackEffect : public CEffect |
| 7 | { |
| 8 | public: |
| 9 | CBlackEffect(int duration, bool concurrent, const CSurface &fx); |
| 10 | CBlackEffect* getCopy(); |
| 11 | void doUpdate() {} |
| 12 | bool hasDraw() { return true; } |
| 13 | void draw(CSurface &s, int x, int y); |
| 14 | |
| 15 | |
| 16 | private: |
| 17 | int duration; |
| 18 | CSurface black; |
| 19 | const CSurface &src; |
| 20 | }; |
| 21 | |
| 22 | #endif |