|
TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
Play back a Brood War replay using OpenBW. More...
#include <replayer.h>
Inherits cherrypi::TCReplayer.
Public Member Functions | |
| Replayer (std::string replayPath) | |
| Replayer (ReplayerConfiguration) | |
| virtual | ~Replayer () override |
| void | setPerspective (PlayerId) |
| Convenience wrapper for State::setPerspective() More... | |
| State * | state () |
| virtual void | onStep () override |
Public Member Functions inherited from cherrypi::TCReplayer | |
| TCReplayer (std::string replayPath) | |
| TCReplayer (ReplayerConfiguration) | |
| virtual | ~TCReplayer () |
| torchcraft::State * | tcstate () const |
| void | init () |
| void | step () |
| void | run () |
| bool | isComplete () |
Protected Attributes | |
| std::unique_ptr< State > | state_ |
Protected Attributes inherited from cherrypi::TCReplayer | |
| ReplayerConfiguration | configuration_ |
| std::unique_ptr< OpenBwProcess > | openbw_ |
| std::shared_ptr< torchcraft::Client > | client_ |
| bool | initialized_ = false |
Play back a Brood War replay using OpenBW.
Runs the bot alongside the replay, and provides access to the bot's state.
| cherrypi::Replayer::Replayer | ( | std::string | replayPath | ) |
| cherrypi::Replayer::Replayer | ( | ReplayerConfiguration | configuration | ) |
|
inlineoverridevirtual |
|
overridevirtual |
Reimplemented from cherrypi::TCReplayer.
| void cherrypi::Replayer::setPerspective | ( | PlayerId | playerId | ) |
Convenience wrapper for State::setPerspective()
| State * cherrypi::Replayer::state | ( | ) |
|
protected |
1.8.11