BWAPI
BasicAIModule/include/Managers/GasManager.h
Go to the documentation of this file.
00001 #pragma once
00002 /*
00003  *  GasManager.h 
00004  *  
00005  *  This manager sends it's workers to build refineries and gather gas 
00006  */
00007 #include "Manager.h"
00008 
00009 
00010 class GasManager : public Manager
00011 {
00012 private:
00013     int refineryCount;
00014     int refineryConstructingCount;
00015     int workersConstructing;
00016     int newRefineries;
00017 
00018 public:
00019     GasManager();
00020 
00021         virtual void update();
00022         virtual void draw();
00023         
00024     int getGasRate() const;
00025     int getNumWorkersGathering() const;
00026 
00027     virtual const std::string& getName() const 
00028     {
00029         static const std::string name("GasMgr");
00030         return name; 
00031     }
00032 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines