D:/simple_rts/include/Timer.h

Go to the documentation of this file.
00001 #ifndef __TIMER_H__
00002 #define __TIMER_H__
00003 
00004 #pragma once
00005 
00006 #include "OgreSingleton.h"
00007 using Ogre::Singleton;
00008 
00009 
00010 namespace ASR
00011 {
00012         class Timer : public Singleton<Timer>
00013         {
00014         // Data Storage
00015         // ----------------------------------------------------------------------------
00016         protected:
00017                 float                   mTimeSinceLastFrame;
00018 
00019         // Construction
00020         // ----------------------------------------------------------------------------
00021         public:
00022                 Timer ();
00023                 ~Timer ();
00024 
00025         // Updating
00026         // ----------------------------------------------------------------------------
00027         public:
00028                 void setTimeSinceLastFrame ( float deltaTime );
00029                 float getTimeSinceLastFrame () const;
00030 
00031         };
00032 }
00033 
00034 #endif

Generated on Sun Jun 25 19:23:43 2006 for Valors End by  doxygen 1.4.7