mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Use forward declarations to reduce dependencies
This commit is contained in:
parent
93a26d757b
commit
2799f5191e
1 changed files with 16 additions and 9 deletions
|
@ -27,10 +27,16 @@
|
|||
#ifndef _HISTORY_H
|
||||
#define _HISTORY_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "pldrack.h"
|
||||
#include "round.h"
|
||||
#include "turn.h"
|
||||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
|
||||
class Round;
|
||||
class Turn;
|
||||
class PlayedRack;
|
||||
|
||||
|
||||
/**
|
||||
* History stores all the turns that have been played
|
||||
|
@ -50,7 +56,8 @@
|
|||
* 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
|
||||
* History owns the turns that it stores. Do not delete a turn referenced
|
||||
* by History
|
||||
*/
|
||||
|
||||
class History
|
||||
|
@ -85,7 +92,7 @@ class History
|
|||
string toString() const;
|
||||
|
||||
private:
|
||||
vector < Turn* > m_history;
|
||||
vector<Turn*> m_history;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue