summaryrefslogtreecommitdiff
path: root/src/wall.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wall.h')
-rw-r--r--src/wall.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/wall.h b/src/wall.h
new file mode 100644
index 0000000..aeef031
--- /dev/null
+++ b/src/wall.h
@@ -0,0 +1,30 @@
+#ifndef WALL_H
+#define WALL_H
+
+#include "../common/tile.h"
+
+#include <boost/random/mersenne_twister.hpp>
+#include <vector>
+
+class Wall {
+ private:
+ //! Our random number generator. Initialized with a seed of the current time that the object is constructed.
+ boost::mt19937 rand_gen;
+
+ //! Contains the remaining tiles in the wall.
+ std::vector<Tile> wall;
+
+ public:
+ Wall();
+
+ //! Build a new wall.
+ void build();
+
+ //! Number of remaining tiles in wall.
+ int remaining();
+
+ //! Returns a random tile from the wall.
+ Tile take_one();
+};
+
+#endif // WALL_H