クラス osl::game_playing::GameManager

#include <gameManager.h>

osl::game_playing::GameManagerに対する継承グラフ
Inheritance graph
[凡例]
osl::game_playing::GameManagerのコラボレーション図
Collaboration graph
[凡例]

すべてのメンバ一覧

構成

struct  EndGame

Public メソッド

 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)

Protected メソッド

const Sennichite pushMove (const search::MoveWithComment &, int seconds)
void popMove ()

Protected 変数

CArray< ComputerPlayer *, 2 > players
CArray< bool, 2 > computers
boost::scoped_ptr< GameStatestate
boost::scoped_ptr< CsaLoggerlogger
TimeKeeper time_keeper

Private メソッド

ComputerPlayerplayer (Player turn) const

Private 変数

int byoyomi

説明

gameManager.h23 行で定義されています。


コンストラクタとデストラクタ

osl::game_playing::GameManager::GameManager ( ComputerPlayer black,
ComputerPlayer white,
CsaLogger logger 
)
引数:
black,white 0 の場合,その手番をコンピュータにできない
logger 所有権移転.new したものを渡す

gameManager.cc13 行で定義されています。

参照先 osl::BLACK, computers, players, と osl::WHITE.

osl::game_playing::GameManager::~GameManager (  )  [virtual]

gameManager.cc25 行で定義されています。


関数

const osl::search::MoveWithComment osl::game_playing::GameManager::computeMove ( int &  consumed  ) 
int osl::game_playing::GameManager::eval ( Player  turn,
Move  m 
)
bool osl::game_playing::GameManager::isComputer ( Player  turn  )  const [inline]
void osl::game_playing::GameManager::load ( const char *  csa_filename,
bool  verbose = false 
)
ComputerPlayer* osl::game_playing::GameManager::player ( Player  turn  )  const [inline, private]

gameManager.h34 行で定義されています。

参照先 players.

参照元 computeMove(), isComputer(), load(), と popMove().

void osl::game_playing::GameManager::popMove (  )  [protected]
const Sennichite osl::game_playing::GameManager::pushMove ( const search::MoveWithComment ,
int  seconds 
) [protected]
void osl::game_playing::GameManager::resetLogger ( CsaLogger l  ) 

gameManager.cc38 行で定義されています。

参照先 logger.

void osl::game_playing::GameManager::setByoyomi ( int  seconds  )  [inline]

gameManager.h48 行で定義されています。

参照先 byoyomi.

void osl::game_playing::GameManager::setComputerPlayer ( Player  turn,
bool  is_computer 
)
void osl::game_playing::GameManager::setTimeLeft ( int  black_time,
int  white_time 
)

変数

gameManager.h32 行で定義されています。

参照元 computeMove(), と setByoyomi().

CArray<bool,2> osl::game_playing::GameManager::computers [protected]

gameManager.h27 行で定義されています。

参照元 GameManager(), isComputer(), と setComputerPlayer().

boost::scoped_ptr<CsaLogger> osl::game_playing::GameManager::logger [protected]

gameManager.h26 行で定義されています。

参照元 GameManager(), player(), と setComputerPlayer().

boost::scoped_ptr<GameState> osl::game_playing::GameManager::state [protected]

このクラスの説明は次のファイルから生成されました:
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義
Sun May 16 09:58:18 2010に生成されました。  doxygen 1.6.3