ComputerPlayer Class Reference

#include <computerplayer.h>

Inheritance diagram for ComputerPlayer:

Inheritance graph
[legend]
Collaboration diagram for ComputerPlayer:

Collaboration graph
[legend]

List of all members.


Detailed Description

This is the basic interface for all AI/network card players. This class is used in the same manner as the Player class is used.

Author:
John Schneiderman

Public Member Functions

 ComputerPlayer (AIBase &aiBase)
virtual Card playCard (const CardSequence &playSequence) const =0
virtual ~ComputerPlayer ()

Protected Attributes

AIBasem_pAIBase

Constructor & Destructor Documentation

ComputerPlayer::ComputerPlayer ( AIBase aiBase  ) 

Default constructor.

Parameters:
aiBase is the "brain" for our computer player.

ComputerPlayer::~ComputerPlayer (  )  [virtual]

Destructor.

Note:
takes care of the deletion of our AIBase.


Member Function Documentation

virtual Card ComputerPlayer::playCard ( const CardSequence playSequence  )  const [pure virtual]

This is used to request that a player play a card.

Parameters:
playSequence is the current playing sequence for the card game.
Returns:
the card the player selects.


Member Data Documentation

Parameters:
m_pAIBase holds all the information on how the computer/network player is to play a specific game.


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

Generated on Tue Aug 12 23:24:01 2008 for KardsGT by  doxygen 1.5.5