BWAPI
|
00001 #pragma once 00002 #include "Micro/Goals/Goal.h" 00003 #include "BWTA.h" 00004 #include "Micro/Units/BayesianUnit.h" 00005 00006 /*** 00007 * A helper/wrapper on top of Goal to facilitate simple attacks (pushs) 00008 */ 00009 class DropGoal: public Goal 00010 { 00011 private: 00012 void createMidSubgoal(); 00013 BWAPI::Position _dropPos; 00014 BWTA::BaseLocation* _base; 00015 pBayesianUnit _dropShipBu; 00016 pBayesianUnit _reaverBu; // hack 00017 public: 00018 DropGoal(BWTA::BaseLocation* b, const std::map<BWAPI::UnitType, int>& nU, int priority=96); 00019 DropGoal(BWAPI::Position p, const std::map<BWAPI::UnitType, int>& nU, int priority=96); 00020 virtual ~DropGoal(); 00021 void achieve(); 00022 virtual void DropGoal::onOffer(std::set<Unit*> objects); 00023 };