#include <player.h>
Inheritance diagram for Player:

It defines the common methods to update the rack, score, etc...
Definition at line 35 of file player.h.
Public Member Functions | |
| Player (int iId) | |
| virtual | ~Player () |
| virtual bool | isHuman () const =0 |
| const PlayedRack & | getCurrentRack () const |
| const PlayedRack & | getLastRack () const |
| const Round & | getLastRound () const |
| void | setCurrentRack (const PlayedRack &iPld) |
| const History & | getHistory () const |
| void | removeLastTurn () |
| Remove last turn. | |
| void | addPoints (int iPoints) |
| int | getPoints () const |
| void | endTurn (const Round &iRound, int iTurn) |
| const string | toString () const |
|
|
Definition at line 33 of file player.cpp. |
|
|
Definition at line 40 of file player.cpp. |
|
|
Definition at line 65 of file player.h. Referenced by Game::back(), and Training::playResult(). |
|
||||||||||||
|
Definition at line 69 of file player.cpp. References History::playRound(). Referenced by Training::playResult(). |
|
|
Definition at line 45 of file player.cpp. References History::getCurrentRack(). Referenced by AIPercent::compute(), Game::getPlayerRack(), Game::helperPlayRound(), Game::helperSetRackManual(), Game::helperSetRackRandom(), Game::realBag(), GfxResult::Refresh(), and Plus1Frame::refresh(). |
|
|
|
|
|
Definition at line 57 of file player.cpp. References Turn::getPlayedRack(), and History::getPreviousTurn(). Referenced by Game::helperPlayRound(). |
|
|
Definition at line 63 of file player.cpp. References History::getPreviousTurn(), and Turn::getRound(). |
|
|
Definition at line 66 of file player.h. Referenced by GameIO::printAllPoints(), and GameIO::printPoints(). |
|
|
Implemented in AIPlayer, and HumanPlayer. Referenced by Game::getNHumanPlayers(). |
|
|
Remove last turn.
Definition at line 74 of file player.cpp. References History::removeLastTurn(). Referenced by Game::back(). |
|
|
Definition at line 51 of file player.cpp. References History::setCurrentRack(). |
|
|
Definition at line 79 of file player.cpp. References History::toString(). Referenced by GameFrame::Refresh(). |
1.4.5