summaryrefslogtreecommitdiff
path: root/server/wall.h
blob: ca48a4040802476b2c14f25041ba7c4e95310195 (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