17 |
/* along with this program; if not, write to the Free Software */ |
/* along with this program; if not, write to the Free Software */ |
18 |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
/* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ |
19 |
|
|
|
/* $Id$ */ |
|
|
|
|
20 |
/** |
/** |
21 |
* \file history.h |
* \file history.h |
22 |
* \brief Game history system |
* \brief Game history system |
35 |
public: |
public: |
36 |
History(); |
History(); |
37 |
~History(); |
~History(); |
38 |
|
|
39 |
/// get the size of the history |
/// get the size of the history |
40 |
int getSize() const; |
int getSize() const; |
41 |
|
|
42 |
/// Get the (possibly incomplete) rack |
/// Get the (possibly incomplete) rack |
43 |
const PlayedRack getCurrentRack() const; |
const PlayedRack getCurrentRack() const; |
44 |
|
|
45 |
/// Set the current rack |
/// Set the current rack |
46 |
void setCurrentRack(const PlayedRack &iPld); |
void setCurrentRack(const PlayedRack &iPld); |
47 |
|
|
48 |
/// Get the previous turn |
/// Get the previous turn |
49 |
const Turn getPreviousTurn() const; |
const Turn getPreviousTurn() const; |
50 |
|
|
54 |
|
|
55 |
/// Remove last turn |
/// Remove last turn |
56 |
void removeLastTurn(); |
void removeLastTurn(); |
57 |
|
|
58 |
std::string toString() const; |
std::string toString() const; |
59 |
|
|
60 |
private: |
private: |