Xiangiqgame
AI engine for Xiangqi
Loading...
Searching...
No Matches
game::GameFactory Class Reference

#include <game_factory.hpp>

Collaboration diagram for game::GameFactory:
Collaboration graph

Public Member Functions

 GameFactory (PlayerSpec red_player_spec, PlayerSpec black_player_spec, std::istream &red_player_input_stream=std::cin, std::istream &black_player_input_stream=std::cin, bool report_during_game=true)
 
std::unique_ptr< GameCreate ()
 

Private Attributes

gameboard::GameBoardFactory game_board_factory_
 
PlayerSpec red_player_spec_
 
PlayerSpec black_player_spec_
 
std::istream & red_player_input_stream_
 
std::istream & black_player_input_stream_
 
bool report_during_game_
 

Detailed Description

Definition at line 55 of file game_factory.hpp.

Constructor & Destructor Documentation

◆ GameFactory()

game::GameFactory::GameFactory ( PlayerSpec  red_player_spec,
PlayerSpec  black_player_spec,
std::istream &  red_player_input_stream = std::cin,
std::istream &  black_player_input_stream = std::cin,
bool  report_during_game = true 
)
inline

Definition at line 64 of file game_factory.hpp.

Member Function Documentation

◆ Create()

std::unique_ptr< Game > game::GameFactory::Create ( )
inline

Definition at line 78 of file game_factory.hpp.

Member Data Documentation

◆ black_player_input_stream_

std::istream& game::GameFactory::black_player_input_stream_
private

Definition at line 60 of file game_factory.hpp.

◆ black_player_spec_

PlayerSpec game::GameFactory::black_player_spec_
private

Definition at line 58 of file game_factory.hpp.

◆ game_board_factory_

gameboard::GameBoardFactory game::GameFactory::game_board_factory_
private

Definition at line 56 of file game_factory.hpp.

◆ red_player_input_stream_

std::istream& game::GameFactory::red_player_input_stream_
private

Definition at line 59 of file game_factory.hpp.

◆ red_player_spec_

PlayerSpec game::GameFactory::red_player_spec_
private

Definition at line 57 of file game_factory.hpp.

◆ report_during_game_

bool game::GameFactory::report_during_game_
private

Definition at line 61 of file game_factory.hpp.


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