BWAPI
quorum/ExampleAIModule/BaseModel.h
Go to the documentation of this file.
00001 #ifndef BASEMODEL_H
00002 #define BASEMODEL_H
00003 #include "BWAPI.h"
00004 #include "GasModel.h"
00005 #include "MineralModel.h"
00006 #include <vector>
00007 #include "BWTA.h"
00008 
00009 class AgentPool;
00010 using namespace BWAPI;
00011 using namespace BWTA;
00012 class BaseModel {
00013         
00014         public:
00015                 //BaseModel::BaseModel(Position baseLoc, AgentPool* agentPool);
00016                 
00017                 BaseModel::BaseModel(AgentPool* ap, Unit* c);
00018                 std::vector<GasModel*> BaseModel::getLocalGas();
00019                 std::vector<MineralModel*> BaseModel::getLocalMinerals();
00020                 Position BaseModel::getPosition();
00021                                 Unit* BaseModel::getCentre();
00022                 void BaseModel::initialize();
00023                 bool BaseModel::isActive();
00024                 bool BaseModel::isUnderAttack();
00025                 Unit* BaseModel::getAttackTarget();
00026 
00027         private:
00028                 AgentPool* agentPool;
00029                 TilePosition baseLocaton;
00030                 //GasModel* localGas;
00031                 std::vector<MineralModel*> localMinerals;
00032                 std::vector<GasModel*> localGas;
00033                 Unit* baseCentre;
00034 
00035 };
00036 
00037 
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046 #endif
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines