dustycountertask.h

Go to the documentation of this file.
00001 #ifndef __DUSTY_COUNTER_TASK_H__
00002 #define __DUSTY_COUNTER_TASK_H__
00003 
00004 #include "dustyengine.h"
00005 
00006 namespace DustyEngine
00007 {
00008         class DummyTask;
00009 
00011         class DUSTYENGINE_API CounterTask : public DummyTask
00012         {
00013         public:
00014                 CounterTask();
00015 
00016                 ~CounterTask();
00017 
00020                 void SetValue(irr::s32 t)
00021                 {
00022                         counterValue = t;
00023                 }
00024 
00027                 irr::s32 GetValue()
00028                 {
00029                         return counterValue;
00030                 }
00031 
00032                 void OnUpdate()
00033                 {
00034                         counterValue++;
00035                 }
00036 
00037         protected:
00038                 irr::s32 counterValue;
00039         };
00040 }
00041 
00042 #endif
00043 

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