blob: 8f864d0672e99cbd232591bca5beadbe886dd3f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#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 curren time that the object is constructed.
boost::mt19937 rand_gen;
//! Contains all the tiles in the wall
std::vector<Tile> m_wall;
//! Contains the number of tiles left in the wall
int num_tiles;
public:
Wall();
//! Returns true if there's only 14 tiles left in the wall (Round ends)
bool is_done();
//! Returns a random tile from the wall
Tile take_one();
};
#endif // WALL_H
|