BWAPI
SPAR/AIModule/SparAIModule/Utils/Task.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 class Component;
00004 
00009 class RunnableTask
00010 {
00011 public:
00016   RunnableTask(const Component& owner)
00017 #ifdef _DEBUG_COMPONENT
00018     : m_owner(owner)
00019 #endif
00020   {
00021     unused(owner);
00022   }
00023 
00024   virtual ~RunnableTask() {}
00025 
00029   void run()
00030   {
00031     runV();
00032   }
00033 
00034 #ifdef _DEBUG_COMPONENT
00035 
00038   const Component& m_owner;
00039 #endif
00040 
00041 protected:
00045   virtual void runV() = 0;
00046 
00047 private:
00048   RunnableTask(const RunnableTask& task);
00049 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines