BWAPI
|
00001 #pragma once 00002 #include "../../Scheduler/Scheduler.h" 00003 #include "../Locations/Static/StaticLocation.h" 00004 00005 class UpdateUnitsTask : public Scheduler::InternalSchedulerTask 00006 { 00007 public: 00008 UpdateUnitsTask(const Component& owner, StaticLocation* location) 00009 : Scheduler::InternalSchedulerTask(owner) 00010 , m_location(location) 00011 {} 00012 void run() 00013 { 00014 m_location->updateOwnUnits(); 00015 m_location->updateEnemyUnits(); 00016 m_location->updateNeutralUnits(); 00017 } 00018 protected: 00019 virtual void runV() 00020 { 00021 run(); 00022 } 00023 StaticLocation* const m_location; 00024 };