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

HumanPlayer Class Reference

Human player class. More...

#include <player.h>

Inheritance diagram for HumanPlayer:

Inheritance graph
[legend]
Collaboration diagram for HumanPlayer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HumanPlayer (int off_x, int off_y, int field_width, unsigned char no)
 Standard constructor for HumanPlayer class.

virtual void getMove (int *x, int *y, Grid &grid)
 Returns user input.


Detailed Description

Human player class.

This class represents interface for player input.


Constructor & Destructor Documentation

HumanPlayer::HumanPlayer int  off_x,
int  off_y,
int  field_width,
unsigned char  no
 

Standard constructor for HumanPlayer class.

Creates new HumanPlayer object. This class interract with user to get user move.

Parameters:
off_x The x screen offset of grid.
off_y The y screen offset of grid.
field_width The width of grid field.
no The player nubmer.

Here is the call graph for this function:


Member Function Documentation

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

Returns user input.

Parameters:
x The x position of player move. If player moves illegaly, this is -1.
y The y position of player move. If player moves illegaly, this is -1.
grid The grid data.

Implements Player.

Here is the call graph for this function:


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