49 Tracker(
int timeout) : timeout_(timeout) {}
69 virtual bool update(
State* s);
74 virtual bool updateNotTracking(
State* s) = 0;
77 virtual bool updatePending(
State* s) = 0;
80 virtual bool updateOngoing(
State* s) = 0;
Game state.
Definition: state.h:42
bool succeeded() const
Definition: tracker.h:63
Task is currently ongoing.
virtual ~Tracker()
Definition: tracker.h:50
TrackerStatus
Definition: tracker.h:16
Corresponding order picked up but not being actually executed yet (e.g.
TrackerStatus status() const
Definition: tracker.h:52
void cancel()
Definition: tracker.h:56
bool failed() const
Definition: tracker.h:59
Task finished successfully.
Abstract base class for Trackers.
Definition: tracker.h:47
Haven't found the target that should be tracker yet.
NotTracking or Pending for too long.
Tracker(int timeout)
Definition: tracker.h:49
Task failed or was aborted.
Main namespace for bot-related code.
Definition: areainfo.cpp:17
int timeout_
Definition: tracker.h:84