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 ObserverActionImp;
15 class ObserverActionInterface;
16 class ControlInterface;
17 struct ReplayInfo;
18 
20 class ReplayObserver : public Client {
21 public:
23  ~ReplayObserver() override;
24 
28 
32 
36  virtual bool IgnoreReplay(const ReplayInfo& replay_info, uint32_t& player_id);
37 
38  void SetControl(ControlInterface* control);
39 
40 private:
41  ReplayControlImp* replay_control_imp_;
42  ObserverActionImp* observer_action_imp_;
43 };
44 
45 }
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:163
Definition: sc2_action.h:9
ObserverActionInterface * ObserverAction()
A client for running a replay.
Definition: sc2_replay_observer.h:20
Definition: sc2_control_interfaces.h:84
ReplayControlInterface * ReplayControl()
The base class for Agent and ReplayObserver.
The ObserverActionInterface corresponds to the actions available in the observer UI.
Definition: sc2_interfaces.h:401
Definition: sc2_control_interfaces.h:16