BWAPI
|
00001 #ifndef TELEPORTERUSERS_H 00002 #define TELEPORTERUSERS_H 00003 #include "TacticsImplementations.h" 00004 #include <map> 00005 #include <list> 00006 00007 class TeleporterUsers : public TacticsImplementation { 00008 public: 00009 TeleporterUsers(Squad* m, AgentPool* p); 00010 virtual bool execute(); 00011 virtual std::vector<MicroTacticsModel*> getSubTeam(UnitType t); 00012 virtual void receiveAlert(Unit* t); 00013 virtual void assignUnit(Unit* u); 00014 virtual void removeUnit(Unit* u); 00015 private: 00016 AgentPool* agentPool; 00017 Squad* element; 00018 bool dead; 00019 std::map<Unit*, Unit*> teleporterPerception; 00020 std::map<Unit*, std::list<Unit*>> teleporterQueue; 00021 bool teleportersOnMap; 00022 }; 00023 00024 #endif