#include <aiinput.h>
Inheritance diagram for AiInput:


Public Slots | |
| void | aiTurn () |
| AI turn is performed. | |
Public Member Functions | |
| AiInput (EngineTwo *engine, QObject *parent) | |
| Constructor for the input. | |
| void | setInputAllowed (bool allowed) |
| Allow or disallow input with this device. | |
| virtual InputDevice::InputDeviceType | type () |
| Retrieve the type of device. | |
Protected Member Functions | |
| Board | getBoardFromEngine () |
| Extract the current game board from the engine. | |
| Move | initiateMove (int p, const Board &board) |
| Initiate a new move as first player. | |
| Move | answerMove (int p, const Board &board) |
| Answer a move as second player. | |
| double | evaluteGame (int p, const AiInput::Board current) |
| Evaluate the current game board and return a rating. | |
Classes | |
| class | Board |
| AI storage of the game board. | |
| class | Move |
| AI representation of a move. | |
Definition at line 34 of file aiinput.h.
|
||||||||||||
|
Constructor for the input.
Definition at line 36 of file aiinput.cpp. |
|
|
AI turn is performed.
Definition at line 53 of file aiinput.cpp. References AbstractEngine::currentPlayer(), global_debug, AbstractInput::mId, and AbstractInput::mInputAllowed. Referenced by setInputAllowed(). |
|
||||||||||||
|
Answer a move as second player.
Definition at line 181 of file aiinput.cpp. References RATING_SCHWARZ. |
|
||||||||||||
|
Evaluate the current game board and return a rating.
Definition at line 122 of file aiinput.cpp. References RATING_ONE_POINT, RATING_REMIS, RATING_SCHNEIDER, RATING_SCHWARZ, and RATING_WON. |
|
|
Extract the current game board from the engine.
Definition at line 94 of file aiinput.cpp. References Player::getCard(), and AbstractEngine::player(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Initiate a new move as first player.
Definition at line 143 of file aiinput.cpp. References RATING_SCHWARZ. |
|
|
Allow or disallow input with this device.
Reimplemented from AbstractInput. Definition at line 45 of file aiinput.cpp. References aiTurn(), and AbstractInput::setInputAllowed(). Here is the call graph for this function: ![]() |
|
|
Retrieve the type of device.
Implements AbstractInput. Definition at line 53 of file aiinput.h. References InputDevice::TypeAiInput. |
1.4.6