From 8bfe5dc896639328329197c32e2276309aa1b83d Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 27 Nov 2010 04:20:32 +0100 Subject: Removed obsolete files. --- common/set.cpp | 5 ----- common/set.h | 21 --------------------- common/state.h | 42 ------------------------------------------ 3 files changed, 68 deletions(-) delete mode 100644 common/set.cpp delete mode 100644 common/set.h delete mode 100644 common/state.h (limited to 'common') diff --git a/common/set.cpp b/common/set.cpp deleted file mode 100644 index ce44f02..0000000 --- a/common/set.cpp +++ /dev/null @@ -1,5 +0,0 @@ -#include "set.h" - -void Set::add_tile(Tile tile) { - container.push_back(tile); -} diff --git a/common/set.h b/common/set.h deleted file mode 100644 index b7cceaa..0000000 --- a/common/set.h +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef CHI_H -#define CHI_H - -#include "tile.h" - -//! Contains a set of tiles -class Set : public Tile { - private: - Tiles container; - - public: - Set(){}; - virtual ~Set(){}; - - //! Add a tile to the set - //! \param tile The tile that should be added to the set - void add_tile(Tile tile); -}; - - -#endif // CHI_H diff --git a/common/state.h b/common/state.h deleted file mode 100644 index 96f171f..0000000 --- a/common/state.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef STATE_H -#define STATE_H - -#include - -#include "tile.h" -#include "action.h" - -class State { - public: - typedef boost::shared_ptr p; - - struct Player { - //! Concealed tiles in hand. - Tiles hand; - //! Open tiles in hand. - Tiles open; - //! Discarded tiles. - Tiles pond; - - template - void serialize(Archive & ar, const unsigned int version) { - ar & hand; - ar & open; - ar & pond; - } - }; - - //! State of players. - Player players[4]; - - //! Possible actions. - Actions possible_actions; - - template - void serialize(Archive & ar, const unsigned int version) { - ar & players; - ar & possible_actions; - } -}; - -#endif \ No newline at end of file -- cgit v1.2.3