10 #include "basetypes.h" 29 std::unordered_set<Unit*> units,
32 float mind = 4.0f * 2,
43 std::unordered_set<Unit*> units_;
63 void findTarget(
State* s);
64 void findTargetForDrone(
State* s);
66 static constexpr
FrameNum kMorphTimeout = 4;
67 static constexpr
float kMorphDistanceThreshold = 4.0f;
68 static constexpr
FrameNum kNotBuildingTimeout = 4;
70 Unit* target_ =
nullptr;
123 std::unordered_set<Unit*> units,
124 std::unordered_set<Unit*> enemies,
129 units_ = std::move(units);
137 void updateEnemies();
Game state.
Definition: state.h:42
Tracks movement of a set of units to a target location.
Definition: commandtrackers.h:26
int FrameNum
Definition: basetypes.h:22
virtual bool updateNotTracking(State *s) override
Updates the tracker if its status is NotTracking.
Definition: commandtrackers.h:56
MovementTracker(std::unordered_set< Unit * > units, int targetX, int targetY, float mind=4.0f *2, int timeout=15)
Definition: commandtrackers.cpp:21
virtual bool updateNotTracking(State *s) override
Updates the tracker if its status is NotTracking.
Definition: commandtrackers.h:83
virtual bool updatePending(State *s) override
Updates the tracker if its status is Pending.
Definition: commandtrackers.cpp:34
std::unordered_set< Unit * > enemies_
Definition: commandtrackers.h:140
Represents and holds information about buildable types (units, upgrades, techs).
Definition: buildtype.h:36
Tracks a set of units attacking enemy units.
Definition: commandtrackers.h:120
replayer::Unit Unit
Definition: state.h:36
Tracks research progress.
Definition: commandtrackers.h:97
void setUnits(std::unordered_set< Unit * > units)
Definition: commandtrackers.h:128
Represents a unit in the game.
Definition: unitsinfo.h:35
Abstract base class for Trackers.
Definition: tracker.h:47
const BuildType * timeout
Definition: autobuild.cpp:348
virtual bool updateNotTracking(State *s) override
Updates the tracker if its status is NotTracking.
Definition: commandtrackers.h:102
std::unordered_set< Unit * > units_
Definition: commandtrackers.h:139
virtual bool updateNotTracking(State *s) override
Updates the tracker if its status is NotTracking.
Definition: commandtrackers.h:36
Main namespace for bot-related code.
Definition: areainfo.cpp:17
Tracks upgrade development.
Definition: commandtrackers.h:78
virtual ~AttackTracker()
Definition: commandtrackers.h:126
virtual bool updateOngoing(State *s) override
Updates the tracker if its status is Ongoing.
Definition: commandtrackers.cpp:62
Tracks construction of a building or training of a unit.
Definition: commandtrackers.h:51