#include <pldrack.h>
This is useful, to be able to write a rack on the form ABC+DEFG, where A, B, C are the "old" letters and D, E, F, G are the "new" ones.
Definition at line 46 of file pldrack.h.
Public Types | |
enum | display_mode { RACK_SIMPLE, RACK_EXTRA, RACK_DEBUG } |
Public Member Functions | |
PlayedRack () | |
virtual | ~PlayedRack () |
void | reset () |
void | resetNew () |
void | getOld (Rack &oRack) const |
void | getNew (Rack &oRack) const |
void | getRack (Rack &oRack) const |
void | setOld (const Rack &iRack) |
void | setNew (const Rack &iRack) |
int | nTiles () const |
int | nNew () const |
int | nOld () const |
void | addNew (const Tile &t) |
void | addOld (const Tile &t) |
void | getNewTiles (vector< Tile > &oTiles) const |
void | getOldTiles (vector< Tile > &oTiles) const |
void | getAllTiles (vector< Tile > &oTiles) const |
bool | checkRack (int iMin) const |
void | operator= (const PlayedRack &iOther) |
string | toString (display_mode iShowExtraSigns=RACK_EXTRA) const |
|
|
|
Definition at line 34 of file pldrack.cpp. |
|
|
|
Definition at line 45 of file pldrack.cpp. Referenced by Game::gameLoadFormat_15(), and setNew(). |
|
Definition at line 39 of file pldrack.cpp. Referenced by Game::gameLoadFormat_15(), Game::helperSetRackManual(), and setOld(). |
|
Definition at line 151 of file pldrack.cpp. |
|
Definition at line 67 of file pldrack.cpp. References nNew(), and nOld(). Referenced by Game::helperPlayRound(), and Game::realBag(). |
|
Definition at line 101 of file pldrack.cpp. References Rack::add(), and Rack::clear(). |
|
Definition at line 59 of file pldrack.cpp. References nNew(). Referenced by Game::helperSetRackRandom(). |
|
Definition at line 90 of file pldrack.cpp. References Rack::add(), and Rack::clear(). Referenced by getRack(). |
|
Definition at line 51 of file pldrack.cpp. References nOld(). |
|
Definition at line 112 of file pldrack.cpp. References Rack::add(), and getOld(). Referenced by AIPercent::compute(), and History::playRound(). |
|
Definition at line 63 of file pldrack.h. Referenced by getAllTiles(), getNewTiles(), nTiles(), and toString(). |
|
Definition at line 64 of file pldrack.h. Referenced by getAllTiles(), getOldTiles(), Game::helperSetRackRandom(), nTiles(), and toString(). |
|
|
|
Definition at line 171 of file pldrack.cpp. References m_newTiles, and m_oldTiles. |
|
Definition at line 77 of file pldrack.cpp. Referenced by Game::helperSetRackManual(). |
|
Definition at line 84 of file pldrack.cpp. Referenced by Game::helperSetRackRandom(). |
|
Definition at line 137 of file pldrack.cpp. References addNew(), and Rack::getTiles(). |
|
Definition at line 123 of file pldrack.cpp. References addOld(), and Rack::getTiles(). Referenced by History::playRound(). |
|
Definition at line 178 of file pldrack.cpp. References nNew(), nOld(), RACK_EXTRA, and RACK_SIMPLE. Referenced by Game::gameSaveFormat_14(), Game::getPlayerRack(), GfxResult::Refresh(), Plus1Frame::refresh(), and Turn::toString(). |