Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CStrategoAI Class Reference

CStrategoAI. More...

#include <StrategoAI.h>

Inheritance diagram for CStrategoAI:

CAIModule CLocalPlayer CPlayer CGenericTask List of all members.

Protected Member Functions

virtual void NewGame ()
 NewGame.
virtual void Play (const CPiece *p)
 Play.
virtual void PlayMove (const CMove *m)
 PlayMove.
virtual bool CheckMove (const CMove *m)
 CheckMove.
virtual void SetPlayerPiece (const CPiece *p)
 SetPlayerPiece.
virtual void InvalidMoveProcessing (const CMove *p)
 InvalidMoveProcessing.
virtual void SetPlayerDescription ()
 SetPlayerDescription.

Detailed Description

CStrategoAI.

Description:

Limitations:


Member Function Documentation

bool CStrategoAI::CheckMove const CMove pMove  )  [protected, virtual]
 

CheckMove.

Description: This function is called to verify a move is valid.

Parameters:
m is the move to check.
Returns:
true if move is valid.
Limitations: NONE

Implements CAIModule.

void CStrategoAI::InvalidMoveProcessing const CMove p  )  [protected, virtual]
 

InvalidMoveProcessing.

Description: Called when an invalid move was discovered.

Parameters:
p is the invalid move.
Returns:
void
Limitations: NONE

Implements CAIModule.

void CStrategoAI::NewGame  )  [protected, virtual]
 

NewGame.

Description: Builds a new game board

Returns:
Limitations: Should only be called once the AI recieves a GAME_START message

Implements CAIModule.

void CStrategoAI::Play const CPiece p  )  [protected, virtual]
 

Play.

Description: Sets the m_curMove variable to the next move.

Parameters:
p is the piece to play. Used to pass on information that might be needed to play (eg. Dice rolls).
Returns:
void
Limitations: NONE

Implements CAIModule.

void CStrategoAI::PlayMove const CMove pMove  )  [protected, virtual]
 

PlayMove.

Description: Plays a move.

Parameters:
pMove,: the move to play.
Returns:
void
Limitations: pMove must point to a valid move.

Implements CAIModule.

void CStrategoAI::SetPlayerDescription  )  [protected, virtual]
 

SetPlayerDescription.

Description: Sets the m_PlayerInfo variable with the correct data.

Returns:
void
Limitations: NONE

Reimplemented from CAIModule.

void CStrategoAI::SetPlayerPiece const CPiece p  )  [protected, virtual]
 

SetPlayerPiece.

Description: This function is called when the player piece of this player is set by the Game Module.

Parameters:
p is this player's piece.
Returns:
void
Limitations: NONE

Implements CAIModule.


The documentation for this class was generated from the following files:
Copyright (c) 2005 Matt Bruns, Pat Hammond, Kevin Markussen, Travis Service, Brain Shaver

SourceForge.net Logo