BWAPI
|
00001 #pragma once 00002 #include "Micro/Goals/Goal.h" 00003 #include <list> 00004 00005 /*** 00006 * A helper/wrapper on top of Goal to facilitate simple attacks (pushs) 00007 */ 00008 class AvoidNukeGoal: public Goal 00009 { 00010 BWAPI::Position _nukePos; 00011 BWAPI::Position _safePos; 00012 std::list<BWAPI::Unit*> _ghostsToKill; 00013 bool _detectedGhost; 00014 inline void fleeTheNuke(); 00015 public: 00016 AvoidNukeGoal(BWAPI::Position target); 00017 void achieve(); 00018 };