dustyintervalcountertask.h

Go to the documentation of this file.
00001 #ifndef __DUSTY_INTERVAL_COUNTER_TASK_H__
00002 #define __DUSTY_INTERVAL_COUNTER_TASK_H__
00003 
00004 #include "dustyengine.h"
00005 
00006 namespace DustyEngine
00007 {
00008         class DummyTask;
00009 
00011         class DUSTYENGINE_API IntervalCounterTask : public DummyTask
00012         {
00013         public:
00014                 IntervalCounterTask();
00015 
00016                 virtual ~IntervalCounterTask();
00017 
00020                 void SetValue(irr::s32 t)
00021                 {
00022                 counterValue = t;
00023                 }
00024 
00027                 irr::s32 GetValue()
00028                 {
00029                         return counterValue;
00030                 }
00031 
00034                 void SetInterval(irr::s32 i)
00035                 {
00036                 interval = i;
00037                 }
00038 
00041                 irr::s32 GetInterval()
00042                 {
00043                 return interval;
00044                 }
00045 
00046                 void OnUpdate()
00047                 {
00048                         counterValue += interval;
00049                 }
00050 
00051         protected:
00052                 irr::s32 counterValue;
00053                 irr::s32 interval;
00054         };
00055 }
00056 
00057 #endif
00058 

Generated on Fri Jan 27 17:31:50 2006 for Dusty Engine by  doxygen 1.4.6-NO