Main Page | Class Hierarchy | Class List | File List | Class Members

Player Class Reference

Abstract class for player. More...

#include <player.h>

Inheritance diagram for Player:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Player (unsigned char no)
 Standard constructor.

void setData (int *data)
 Sets data before getMove method call.

virtual void getMove (int *x, int *y, Grid &grid)=0
 Gets player move.


Protected Attributes

unsigned char plNo
 The number of a player.

int data [boardSize]
 Board data.


Detailed Description

Abstract class for player.

This class defines interface for player classes.


Constructor & Destructor Documentation

Player::Player unsigned char  no  )  [inline]
 

Standard constructor.

Parameters:
no The number of player.


Member Function Documentation

virtual void Player::getMove int *  x,
int *  y,
Grid grid
[pure virtual]
 

Gets player move.

Parameters:
x The x position of player move.
y The y position of player move.
grid The grid data.

Implemented in HumanPlayer, and AIPlayer.

void Player::setData int *  data  )  [inline]
 

Sets data before getMove method call.

Parameters:
data Board data.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Fri May 14 02:44:26 2004 for Reversi by doxygen 1.3.7