Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

TimerAgent.h

Go to the documentation of this file.
00001 #ifndef HEADER_TIMERAGENT_H
00002 #define HEADER_TIMERAGENT_H
00003 
00004 #include "BaseAgent.h"
00005 #include "Name.h"
00006 
00007 #include "SDL.h"
00008 
00009 /**
00010  * Delay and framerame.
00011  */
00012 class TimerAgent : public BaseAgent {
00013     AGENT(TimerAgent, Name::TIMER_NAME);
00014     private:
00015         int m_timeinterval;
00016         Uint32 m_lastTime;
00017         Uint32 m_nextTime;
00018         Uint32 m_deltaTime;
00019         int m_count;
00020     private:
00021         int getTimeInterval();
00022     protected:
00023         virtual void own_init();
00024         virtual void own_update();
00025     public:
00026         Uint32 getDeltaTime() const { return m_deltaTime; }
00027         int getCycles() const { return m_count; }
00028 };
00029 
00030 #endif

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2