TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cherrypi::GameSinglePlayer Class Reference

A constructed gameplay scenario for training/testing purposes. More...

#include <game.h>

Public Member Functions

 GameSinglePlayer (GameOptions const &gameOptions, GamePlayerOptions const &player1, GamePlayerOptions const &player2=GamePlayerOptions(tc::BW::Race::None))
 
 GameSinglePlayer (GameSinglePlayer &&)=default
 
std::shared_ptr< torchcraft::ClientmakeClient (torchcraft::Client::Options opts=torchcraft::Client::Options()) const
 

Protected Member Functions

std::unique_ptr< OpenBwProcessstartProcess () const
 
 GameSinglePlayer ()=default
 

Protected Attributes

std::unique_ptr< OpenBwProcessproc_
 

Detailed Description

A constructed gameplay scenario for training/testing purposes.

A scenario is defined by the commands that should be executed when the game starts. For example, it can spawn units, ask them to move at a certain place,...'

Constructor & Destructor Documentation

cherrypi::GameSinglePlayer::GameSinglePlayer ( GameOptions const &  gameOptions,
GamePlayerOptions const &  player1,
GamePlayerOptions const &  player2 = GamePlayerOptions(tc::BW::Race::None) 
)
cherrypi::GameSinglePlayer::GameSinglePlayer ( GameSinglePlayer &&  )
default
cherrypi::GameSinglePlayer::GameSinglePlayer ( )
protecteddefault

Member Function Documentation

std::shared_ptr< tc::Client > cherrypi::GameSinglePlayer::makeClient ( torchcraft::Client::Options  opts = torchcraft::Client::Options()) const
std::unique_ptr<OpenBwProcess> cherrypi::GameSinglePlayer::startProcess ( ) const
protected

Member Data Documentation

std::unique_ptr<OpenBwProcess> cherrypi::GameSinglePlayer::proc_
protected

The documentation for this class was generated from the following files: