summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 04:20:32 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-11-27 05:55:00 +0100
commit8bfe5dc896639328329197c32e2276309aa1b83d (patch)
treeeafbdacf4ebea0e9f9f27f6020bab20b29a20089 /common
parentd0c5819fb141f5cb174f47616d7c5ea4116e871c (diff)
Removed obsolete files.
Diffstat (limited to 'common')
-rw-r--r--common/set.cpp5
-rw-r--r--common/set.h21
-rw-r--r--common/state.h42
3 files changed, 0 insertions, 68 deletions
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 <boost/shared_ptr.hpp>
-
-#include "tile.h"
-#include "action.h"
-
-class State {
- public:
- typedef boost::shared_ptr<State> p;
-
- struct Player {
- //! Concealed tiles in hand.
- Tiles hand;
- //! Open tiles in hand.
- Tiles open;
- //! Discarded tiles.
- Tiles pond;
-
- template<class Archive>
- 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<class Archive>
- void serialize(Archive & ar, const unsigned int version) {
- ar & players;
- ar & possible_actions;
- }
-};
-
-#endif \ No newline at end of file