CrossZeroHumanPlayer Class Reference

#include <CrossZeroHumanPlayer.h>

Inheritance diagram for CrossZeroHumanPlayer:

Inheritance graph
[legend]
Collaboration diagram for CrossZeroHumanPlayer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 CrossZeroHumanPlayer ()
virtual ~CrossZeroHumanPlayer ()
virtual CrossZeroPoint< int > getRespond (const CrossZeroGameField *pField=0)

Protected Member Functions

virtual bool getInput ()

Private Attributes

CrossZeroPoint< int > _point


Detailed Description

Definition at line 18 of file CrossZeroHumanPlayer.h.


Constructor & Destructor Documentation

CrossZeroHumanPlayer::CrossZeroHumanPlayer (  ) 

Class default constructor

Definition at line 15 of file CrossZeroHumanPlayer.cpp.

CrossZeroHumanPlayer::~CrossZeroHumanPlayer (  )  [virtual]

Class destructor

Definition at line 18 of file CrossZeroHumanPlayer.cpp.


Member Function Documentation

CrossZeroPoint< int > CrossZeroHumanPlayer::getRespond ( const CrossZeroGameField pField = 0  )  [virtual]

This is a method which is inherited from CrossZeroPlayer-class

Parameters:
pField is pointer to game field-class object.
Returns:
point which contains 2D-coordinate of Human player's next move on gamefield.

Implements CrossZeroPlayer.

Definition at line 21 of file CrossZeroHumanPlayer.cpp.

References _point, getInput(), CrossZeroPlayer::getPlayerToken(), CrossZeroGameField::isPositionReserved(), CrossZeroGameField::printGameField(), CrossZeroPoint< T >::x, and CrossZeroPoint< T >::y.

Referenced by CrossZeroEngine::start().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CrossZeroHumanPlayer::getInput (  )  [protected, virtual]

Reads input from game player (from YOU)

Returns:
true if input was correct, false if not

Definition at line 47 of file CrossZeroHumanPlayer.cpp.

References _point, and CrossZeroStringUtils::stringToValue().

Referenced by getRespond().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 46 of file CrossZeroHumanPlayer.h.

Referenced by getInput(), and getRespond().


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