BWAPI
|
00001 #ifndef GASMODEL_H 00002 #define GASMODEL_H 00003 #include <BWAPI.h> 00004 00005 using namespace BWAPI; 00006 00007 class GasModel { 00008 public: 00009 GasModel::GasModel(Unit* m, int i); 00010 GasModel::GasModel(); 00011 void GasModel::assignUnit(); 00012 void GasModel::assignUnitCount(int c); 00013 void GasModel::removeUnit(); 00014 Unit* GasModel::getUnit(); 00015 bool GasModel::canBeMined(); 00016 int GasModel::assignedUnits(); 00017 bool GasModel::hasRefinery(); 00018 bool GasModel::isEmpty(); 00019 int GasModel::getStartingResources(); 00020 private: 00021 Unit* element; 00022 int unitsAssigned; 00023 int startingResources; 00024 // may also want to store the units assigned to this resource for later access 00025 }; 00026 #endif