Use forward declarations to reduce dependencies

This commit is contained in:
Olivier Teulière 2006-01-02 19:05:37 +00:00
parent 93a26d757b
commit 2799f5191e

View file

@ -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