BWAPI
|
00001 #pragma once 00002 00003 #include "Interface.h" 00004 00005 #include "Task.h" 00006 #include "ReservedLocation.h" 00007 00008 class TaskPump 00009 { 00010 public: 00011 TaskPump(BWAPI::UnitType type, TaskType taskType, BuildingLocation location = BuildingLocation::Base); 00012 00013 void update(); 00014 00015 void changeTargetQuantity(int iQuantity) { mTargetQuantity = iQuantity; } 00016 00017 private: 00018 BWAPI::UnitType mType; 00019 TaskType mTaskType; 00020 BuildingLocation mLocation; 00021 00022 int mTargetQuantity; 00023 00024 std::list<TaskPointer> mQueuedItems; 00025 };