CrossZeroEngine Class Reference

#include <CrossZeroEngine.h>

Collaboration diagram for CrossZeroEngine:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CrossZeroEngine ()
 ~CrossZeroEngine ()
void createPlayers (const std::string &strToken)
void start ()

Private Attributes

CrossZeroHumanPlayer_pHuman
CrossZeroAiPlayer_pBot


Detailed Description

Definition at line 23 of file CrossZeroEngine.h.


Constructor & Destructor Documentation

CrossZeroEngine::CrossZeroEngine (  ) 

Default constructor.

Definition at line 17 of file CrossZeroEngine.cpp.

CrossZeroEngine::~CrossZeroEngine (  ) 

Class destuctor.

Definition at line 20 of file CrossZeroEngine.cpp.

References _pBot, and _pHuman.


Member Function Documentation

void CrossZeroEngine::createPlayers ( const std::string &  strToken  ) 

Players of the game are generated here and adjusted to "begin"-state.

Parameters:
strToken is string which contains token which "Human"-player (or AI) has chosen.

Definition at line 27 of file CrossZeroEngine.cpp.

References _pBot, _pHuman, and CrossZeroPlayer::setPlayerToken().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void CrossZeroEngine::start (  ) 

When start()-method is called, game engine starts to run game.

Definition at line 42 of file CrossZeroEngine.cpp.

References _pBot, _pHuman, CrossZeroGameField::addInput(), CrossZeroPlayer::getPlayerToken(), CrossZeroAiPlayer::getRespond(), CrossZeroHumanPlayer::getRespond(), CrossZeroGameField::hasPlayerWon(), and CrossZeroGameField::printGameField().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 48 of file CrossZeroEngine.h.

Referenced by createPlayers(), start(), and ~CrossZeroEngine().

Definition at line 49 of file CrossZeroEngine.h.

Referenced by createPlayers(), start(), and ~CrossZeroEngine().


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

Generated on Mon Feb 25 23:18:58 2008 for CrossZero by  doxygen 1.5.5