mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-11-17 07:48:27 +01:00
Makefile.am
This commit is contained in:
parent
983d413a3b
commit
9fa76dda0e
2 changed files with 22 additions and 1 deletions
|
@ -26,9 +26,11 @@
|
|||
|
||||
#include <string>
|
||||
#include "rack.h"
|
||||
#include "history.h"
|
||||
#include "pldrack.h"
|
||||
#include "round.h"
|
||||
#include "turn.h"
|
||||
#include "debug.h"
|
||||
#include "history.h"
|
||||
|
||||
/* ******************************************************** */
|
||||
/* ******************************************************** */
|
||||
|
@ -38,6 +40,7 @@
|
|||
History::History()
|
||||
{
|
||||
Turn* t = new Turn ();
|
||||
m_history.clear();
|
||||
m_history.push_back(t);
|
||||
}
|
||||
|
||||
|
|
|
@ -33,6 +33,23 @@ class Turn;
|
|||
class PlayedRack;
|
||||
class Round;
|
||||
|
||||
/**
|
||||
* History stores all the turns that have been played
|
||||
* This class is used many times in the game
|
||||
* - one for the complete game
|
||||
* - one for each of the players
|
||||
*
|
||||
* A History is never empty (getSize() can be used as the is the current turn
|
||||
* number for the complete game history). The top of the history is an empty
|
||||
* Turn until it has been filled and game is up to a new round.
|
||||
*
|
||||
* getCurrentRack() can/should be used to store the current played rack.
|
||||
* setCurrentRack must be called whenever the current played rack is
|
||||
* modified.
|
||||
*
|
||||
* History owns the turns that it stores. Do not delete a turn referenced by History
|
||||
*/
|
||||
|
||||
class History
|
||||
{
|
||||
public:
|
||||
|
@ -72,6 +89,7 @@ class History
|
|||
|
||||
|
||||
/// Local Variables:
|
||||
/// mode: c++
|
||||
/// mode: hs-minor
|
||||
/// c-basic-offset: 4
|
||||
/// End:
|
||||
|
|
Loading…
Reference in a new issue