BWAPI
BTHAI/SCProjects/BTHAIModule/Source/AgentFactory.h
Go to the documentation of this file.
00001 #ifndef __AGENTFACTORY_H__
00002 #define __AGENTFACTORY_H__
00003 
00004 #include "BaseAgent.h"
00005 
00006 using namespace BWAPI;
00007 using namespace std;
00008 
00018 class AgentFactory {
00019 
00020 private:
00021         AgentFactory();
00022         static AgentFactory* instance;
00023         static bool instanceFlag;
00024         BaseAgent* createTerranAgent(Unit* unit);
00025         BaseAgent* createProtossAgent(Unit* unit);
00026         BaseAgent* createZergAgent(Unit* unit);
00027         
00028 public:
00029         ~AgentFactory();
00030 
00032         static AgentFactory* getInstance();
00033 
00035         BaseAgent* createAgent(Unit* unit);
00036 
00038         bool isOfType(Unit* unit, UnitType type);
00039         
00040 };
00041 
00042 #endif
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines