#include <AIModule.h>
Inheritance diagram for CAIModule:

Public Member Functions | |
| CAIModule () | |
| CAIModule. | |
| virtual | ~CAIModule () |
| ~CAIModule | |
Protected Member Functions | |
| virtual void | NewGame ()=0 |
| NewGame. | |
| virtual void | Play (const CPiece *p)=0 |
| Play. | |
| virtual void | PlayMove (const CMove *m)=0 |
| PlayMove. | |
| virtual bool | CheckMove (const CMove *m)=0 |
| CheckMove. | |
| virtual void | SetPlayerPiece (const CPiece *p)=0 |
| SetPlayerPiece. | |
| virtual void | InvalidMoveProcessing (const CMove *p)=0 |
| InvalidMoveProcessing. | |
| virtual void | SetPlayerDescription () |
| SetPlayerDescription. | |
Description: Base class AI module to make writing AI modules easier.
Limitations: NONE
|
|
CAIModule. Description: Class constructor Limitations: NONE |
|
|
~CAIModule Description: Class deconstructor Limitations: NONE |
|
|
CheckMove. Description: Checks a move and returns true if it is valid and false otherwise.
Implemented in CBackgammonAI, COthelloAI, CStrategoAI, and CTicTacToeAI. |
|
|
InvalidMoveProcessing. Description: Called when an invalid move was discovered.
Implemented in CBackgammonAI, COthelloAI, CStrategoAI, and CTicTacToeAI. |
|
|
NewGame. Description: Initalizes the game board
Implemented in CBackgammonAI, COthelloAI, CStrategoAI, and CTicTacToeAI. |
|
|
Play. Description: Sets the m_curMove variable to the next move.
Implemented in CBackgammonAI, COthelloAI, CStrategoAI, and CTicTacToeAI. |
|
|
PlayMove. Description: Plays a move by updating the game board.
Implemented in CBackgammonAI, COthelloAI, CStrategoAI, and CTicTacToeAI. |
|
|
SetPlayerDescription. Description: Sets the m_PlayerInfo variable with the correct data.
Reimplemented in CBackgammonAI, COthelloAI, CStrategoAI, and CTicTacToeAI. |
|
|
SetPlayerPiece. Description: This function is called when the player piece of this player is set by the Game Module.
Implemented in CBackgammonAI, COthelloAI, CStrategoAI, and CTicTacToeAI. |