13 #include "tilesinfo.h" 18 DECLARE_uint64(tactics_fight_or_flee_interval);
26 std::shared_ptr<UPCTuple> upc = std::make_shared<UPCTuple>();
35 upc->command[Command::Delete] = 1.0;
38 upc->unit[unit] = 1.0;
Game state.
Definition: state.h:42
virtual void step(State *state) override
Definition: dummytactics.h:29
A simple Tactics module that issues a globally-distributed Delete UPC.
Definition: dummytactics.h:25
UnitsInfo & unitsInfo()
Definition: state.h:116
UpcId constexpr kRootUpcId
Definition: basetypes.h:24
UpcId postUPC(std::shared_ptr< UPCTuple > &&upc, UpcId sourceId, Module *origin, std::shared_ptr< UpcPostData > data=nullptr)
Post a UPC tuple.
Definition: blackboard.cpp:88
const Units & myUnits()
All our (live) units.
Definition: unitsinfo.h:336
std::unordered_map< Unit *, float > UnitMap
Definition: upc.h:46
Blackboard * board() const
Definition: state.h:99
const Units & enemyUnits()
All enemy units that are not dead (includes gone units).
Definition: unitsinfo.h:350
Main namespace for bot-related code.
Definition: areainfo.cpp:17
Interface for bot modules.
Definition: module.h:30