refevent.h
Aller à la documentation de ce fichier.00001 #ifndef REFEVENT_H
00002 #define REFEVENT_H
00003
00004 #include <list>
00005 #include <SDL/sdl.h>
00006 #include "log.h"
00007
00008 class RefEvent
00009 {
00010 public:
00017 RefEvent(SDL_Event &evnt, void (ptrCallback)(SDL_Event*), unsigned long prior=0,long execcounter=-1);
00022 bool testEvent(SDL_Event *evnt);
00024 virtual ~RefEvent();
00025
00026 public:
00027 long execCounter;
00028 unsigned long priority;
00029 protected:
00030 private:
00031 SDL_Event event;
00032 void (*callback) (SDL_Event*);
00033 };
00034
00035 #endif // REFEVENT_H