SC2API
An API for AI for StarCraft II
sc2_replay_observer.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "sc2_client.h"
7 
8 #include <string>
9 
10 namespace sc2 {
11 
12 class ReplayControlImp;
13 class ReplayControlInterface;
14 class ControlInterface;
15 struct ReplayInfo;
16 
18 class ReplayObserver : public Client {
19 public:
21  ~ReplayObserver() override;
22 
26 
30  virtual bool IgnoreReplay(const ReplayInfo& replay_info, uint32_t& player_id);
31 
32  void SetControl(ControlInterface* control);
33 
34 private:
35  ReplayControlImp* replay_control_imp_;
36 };
37 
38 }
virtual bool IgnoreReplay(const ReplayInfo &replay_info, uint32_t &player_id)
The base class for Agent and ReplayObserver.
Definition: sc2_client.h:97
Information about a replay file.
Definition: sc2_gametypes.h:158
Definition: sc2_action.h:9
A client for running a replay.
Definition: sc2_replay_observer.h:18
Definition: sc2_control_interfaces.h:78
ReplayControlInterface * ReplayControl()
The base class for Agent and ReplayObserver.
Definition: sc2_control_interfaces.h:16