BWAPI
BasicAIModule/include/Common.h
Go to the documentation of this file.
00001 #pragma once
00002 /*
00003  * Common.h
00004  * 
00005  * Common typedefs and includes
00006  */
00007 #include <vector>
00008 #include <queue>
00009 #include <set>
00010 #include <map>
00011 #include <stack>
00012 
00013 class Agent;
00014 class Squad;
00015 class Task;
00016 class Manager;
00017 
00018 namespace BWAPI { class Unit; }
00019 
00020 using std::queue;
00021 using std::stack;
00022 using std::map;
00023 using std::vector;
00024 
00025 /* Commonly used typedefs */
00026 
00027 typedef std::set<Agent*>            AgentSet;
00028 typedef AgentSet::iterator          AgentSetIter;
00029 typedef AgentSet::const_iterator    AgentSetConstIter;
00030 
00031 typedef std::vector<Agent*>         AgentVector;
00032 typedef AgentVector::iterator       AgentVectorIter;
00033 typedef AgentVector::const_iterator AgentVectorConstIter;
00034 
00035 typedef std::vector<Squad*>         SquadVector;
00036 typedef SquadVector::iterator       SquadVectorIter;
00037 typedef SquadVector::const_iterator SquadVectorConstIter;
00038 
00039 typedef std::set<BWAPI::Unit*>      UnitSet;
00040 typedef UnitSet::iterator           UnitSetIter;
00041 typedef UnitSet::const_iterator     UnitSetConstIter;
00042 
00043 typedef std::map<BWAPI::Unit*, Agent*>  UnitAgentMap;
00044 typedef UnitAgentMap::iterator          UnitAgentMapIter;
00045 typedef UnitAgentMap::const_iterator    UnitAgentMapConstIter;
00046 
00047 typedef std::map<Agent*, Manager*>      AgentManagerMap;
00048 typedef AgentManagerMap::iterator       AgentManagerMapIter;
00049 typedef AgentManagerMap::const_iterator AgentManagerMapConstIter;
00050 
00051 typedef std::priority_queue<Task*>  TaskQueue;
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines