BWAPI
BasicAIModule/include/Managers/SupplyManager.h
Go to the documentation of this file.
00001 #pragma once
00002 /*
00003  *  SupplyManager.h
00004  *  
00005  *  Used to ensure SupplyDepot count keeps supply below capacity
00006  */
00007 #include "Manager.h"
00008 
00009 
00010 class SupplyManager : public Manager
00011 {
00012 private:
00013     int depotCount;
00014     int plannedDepotCount;
00015 
00016     /* plannedSupply - plannedSupply from planned depots + currentSupply*/
00017     int plannedSupply() const;
00018 
00019 public: 
00020         SupplyManager();
00021 
00022         virtual void update();
00023         virtual void draw();
00024 
00025     virtual const std::string& getName() const 
00026     { 
00027         static const std::string name("SupplyMgr");
00028         return name;
00029     }
00030 };
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines