BWAPI
|
00001 #pragma once 00002 #include "../LowLevelAction.h" 00003 00004 namespace layer1 00005 { 00006 class StopAction : public LowLevelAction 00007 { 00008 public: 00009 StopAction(IBehaviorState& state) 00010 : LowLevelAction(state) 00011 { 00012 } 00013 virtual std::string getDescription() const 00014 { 00015 return "Stop"; 00016 } 00017 virtual bool execute(BWAPI::Unit* unit) const 00018 { 00019 return unit->stop(); 00020 } 00021 }; 00022 }