BWAPI
SPAR/AIModule/SparAIModule/PerceptualState/Tasks/UpdateBuildingsTask.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "../../Scheduler/Scheduler.h"
00003 #include "../Locations/Static/StaticLocation.h"
00004 
00005 class UpdateBuildingsTask : public Scheduler::InternalSchedulerTask
00006 {
00007 public:
00008   UpdateBuildingsTask(const Component& owner, StaticLocation* location)
00009     : Scheduler::InternalSchedulerTask(owner)
00010     , m_location(location)
00011   {}
00012   void run()
00013   {
00014     m_location->updateEnemyBuildings();
00015     m_location->updateNeutralBuildings();
00016   }
00017 protected:
00018   virtual void runV()
00019   {
00020     run();
00021   }
00022   StaticLocation* const m_location;
00023 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines