go2starr / CS-638-BWAPI

Starcraft: Broodwar AI bot
GNU Lesser General Public License v3.0
9 stars 7 forks source link

Remove refinery construction from GasManager #6

Open bploeckelman opened 12 years ago

bploeckelman commented 12 years ago

GasManager should just be responsible for gathering gas, not building structures.

The refinery building code in GasManager can be changed to request that a refinery be built by BuildingManager:

Strategizer::instance().buildManager.build(UnitType::Terran_Refinery, true);