00001 #ifndef HEADER_VIEWEFFECT_H 00002 #define HEADER_VIEWEFFECT_H 00003 00004 #include "SDL.h" 00005 00006 /** 00007 * Graphic effect before blit. 00008 */ 00009 class ViewEffect { 00010 public: 00011 virtual ~ViewEffect() {} 00012 /** 00013 * Update effect after blit. 00014 */ 00015 virtual void updateEffect() {} 00016 virtual bool isDisintegrated() const { return false; } 00017 virtual bool isInvisible() const { return false; } 00018 virtual void blit(SDL_Surface *screen, SDL_Surface *surface, 00019 int x, int y) = 0; 00020 }; 00021 00022 #endif