All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
osl::game_playing::CsaClient Class Reference

#include <csaClient.h>

Inheritance diagram for osl::game_playing::CsaClient:
Inheritance graph
[legend]
Collaboration diagram for osl::game_playing::CsaClient:
Collaboration graph
[legend]

Public Member Functions

 CsaClient (ComputerPlayer *black, ComputerPlayer *white, CsaLogger *l, std::istream &, std::ostream &)
 
 ~CsaClient ()
 
void setShowMoveWithComment (bool value=true)
 
void setSilent (bool new_value=true)
 
- Public Member Functions inherited from osl::game_playing::CuiClient
 CuiClient (ComputerPlayer *black, ComputerPlayer *white, CsaLogger *l, std::istream &, std::ostream &)
 
 ~CuiClient ()
 
void run (const char *black, const char *white)
 
void run ()
 
volatile int * stopFlag ()
 
- Public Member Functions inherited from osl::game_playing::GameManager
 GameManager (ComputerPlayer *black, ComputerPlayer *white, CsaLogger *logger)
 
virtual ~GameManager ()
 
void load (const char *csa_filename, bool verbose=false)
 
void setTimeLeft (int black_time, int white_time)
 
void setByoyomi (int seconds)
 
void resetLogger (CsaLogger *l)
 
void setComputerPlayer (Player turn, bool is_computer)
 
bool isComputer (Player turn) const
 
const search::MoveWithComment computeMove (int &consumed)
 
int eval (Player turn, Move m)
 

Private Member Functions

bool readAndProcessCommand ()
 
void processComputerMove (const search::MoveWithComment &, int seconds)
 

Private Attributes

bool show_move_with_comment
 
bool silent
 
std::string line
 

Additional Inherited Members

- Protected Member Functions inherited from osl::game_playing::GameManager
const Sennichite pushMove (const search::MoveWithComment &, int seconds)
 
void popMove ()
 
- Protected Attributes inherited from osl::game_playing::CuiClient
std::istream & is
 
std::ostream & os
 

Detailed Description

Definition at line 11 of file csaClient.h.

Constructor & Destructor Documentation

osl::game_playing::CsaClient::CsaClient ( ComputerPlayer black,
ComputerPlayer white,
CsaLogger l,
std::istream &  is,
std::ostream &  os 
)

Definition at line 18 of file csaClient.cc.

References osl::game_playing::GameManager::setComputerPlayer(), and osl::WHITE.

osl::game_playing::CsaClient::~CsaClient ( )

Definition at line 27 of file csaClient.cc.

Member Function Documentation

void osl::game_playing::CsaClient::processComputerMove ( const search::MoveWithComment ,
int  seconds 
)
privatevirtual
bool osl::game_playing::CsaClient::readAndProcessCommand ( )
privatevirtual
void osl::game_playing::CsaClient::setShowMoveWithComment ( bool  value = true)

Definition at line 127 of file csaClient.cc.

void osl::game_playing::CsaClient::setSilent ( bool  new_value = true)
inline

Definition at line 22 of file csaClient.h.

References silent.

Member Data Documentation

std::string osl::game_playing::CsaClient::line
private

Definition at line 15 of file csaClient.h.

bool osl::game_playing::CsaClient::show_move_with_comment
private

Definition at line 13 of file csaClient.h.

bool osl::game_playing::CsaClient::silent
private

Definition at line 14 of file csaClient.h.

Referenced by setSilent().


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