13 #include "autobuild.h" 15 #include "models/bandit.h" 19 #include "models/bos/runner.h" 21 #include <common/flags.h> 24 DECLARE_bool(game_history);
63 std::string
const& buildorder);
75 tc::BW::Race enemyRace,
76 const std::string& mapName,
77 const std::string& enemyName);
78 std::unique_ptr<bos::ModelRunner> makeBosRunner(
State* state);
79 std::string stepBos(
State* state);
80 bool shouldListenToBos(
State* state);
83 int nbScoutingOverlords_ = 0;
84 int nbScoutingExplorers_ = 0;
85 int nbScoutingWorkers_ = 0;
87 std::unique_ptr<bos::ModelRunner> bosRunner_ =
nullptr;
89 float bosStartTime_ = 0;
90 bool bosMapVerified_ =
false;
Game state.
Definition: state.h:42
virtual ~StrategyModule()=default
virtual void step(State *state) override
Definition: strategy.cpp:101
std::string getOpeningBuildOrder(State *s)
Definition: strategy.cpp:351
int FrameNum
Definition: basetypes.h:22
Command
Abstract "meta" commands for UPCTuples.
Definition: basetypes.h:314
Definition: strategy.h:33
DEFINE_FLAG_OPERATORS(StrategyModule::Duty)
Duty
Definition: strategy.h:30
virtual void stepScouting(State *state)
Definition: strategy.cpp:164
std::string currentBuildOrder_
Definition: strategy.h:57
Definition: strategy.h:31
std::shared_ptr< ProxyTask > getProxyTaskWithCommand(State *state, Command command)
Definition: strategy.cpp:649
Definition: strategy.h:34
Definition: strategy.h:35
virtual void stepHarassment(State *state)
Definition: strategy.cpp:249
Definition: strategy.h:32
virtual void onGameEnd(State *s) override
Definition: strategy.cpp:382
Definition: strategy.h:28
virtual void onGameStart(State *s) override
Definition: strategy.cpp:316
void spawnBuildOrderTask(State *state, UpcId originUpcId, std::string const &buildorder)
Definition: strategy.cpp:141
StrategyModule(Duty duties=Duty::All)
Definition: strategy.cpp:99
Main namespace for bot-related code.
Definition: areainfo.cpp:17
int UpcId
Definition: basetypes.h:23
virtual void stepBuildOrder(State *state)
Chooses the build order.
Definition: strategy.cpp:113
Interface for bot modules.
Definition: module.h:30