#include <aibase.h>
Public Member Functions | |
AIBase () | |
virtual int | decision (const QString &game, const CardSequence &playSequence, const RuleBase &rules, const CardSequence &hand, const GameInformation &specialInformation, int score) const =0 |
virtual QString | name () const =0 |
virtual Player::SkillLevel | skillLevel (const QString &game) const =0 |
virtual CardSequence | whichCards (const QString &game, const CardSequence &playSequence, const RuleBase &rules, const CardSequence &hand, const GameInformation &specialInformation) const =0 |
virtual | ~AIBase () |
AIBase::AIBase | ( | ) |
Default constructor.
AIBase::~AIBase | ( | ) | [virtual] |
Default destructor.
virtual int AIBase::decision | ( | const QString & | game, | |
const CardSequence & | playSequence, | |||
const RuleBase & | rules, | |||
const CardSequence & | hand, | |||
const GameInformation & | specialInformation, | |||
int | score | |||
) | const [pure virtual] |
This gives a decision on the game being played and the strategy the AI uses.
game | is the name of the game or game phase the AI player is currently in. This information should be used to determine what the player needs to do. | |
playSequence | is the current play sequence of cards in the game. | |
rules | is the rules for the current game. | |
hand | is the cards in the AI players hand. | |
specialInformation | is the game state information normally known to a human player. | |
score | is the players current score. |
virtual QString AIBase::name | ( | ) | const [pure virtual] |
An accessor to the name of our AI player.
virtual Player::SkillLevel AIBase::skillLevel | ( | const QString & | game | ) | const [pure virtual] |
virtual CardSequence AIBase::whichCards | ( | const QString & | game, | |
const CardSequence & | playSequence, | |||
const RuleBase & | rules, | |||
const CardSequence & | hand, | |||
const GameInformation & | specialInformation | |||
) | const [pure virtual] |
This selects a number of cards based on the game being played and the strategy the AI uses.
game | is the name of the game or game phase the AI player is currently in. This information should be used to determine what the player needs to do. | |
playSequence | is the current play sequence of cards in the game. | |
rules | is the rules for the current game. | |
hand | is the cards in the AI players hand. | |
specialInformation | is the game state information normally known to a human player. |