-
Notifications
You must be signed in to change notification settings - Fork 2
/
standard_board_builder.hpp
42 lines (30 loc) · 1.38 KB
/
standard_board_builder.hpp
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
33
34
35
36
37
38
39
40
41
42
#ifndef standard_board_builder_h
#define standard_board_builder_h
#include "board_builder.hpp"
class Scrabble_Game;
class Scrabble_Board;
/**
* This class implements the Board_Builder interface and is designed to
* construct a standard scrabble board.
*
* Note that this class is a singleton.
*/
////////////////////////////////////////////////////////////////////////////////
class Standard_Board_Builder : public Board_Builder
////////////////////////////////////////////////////////////////////////////////
{
public:
//////////////////////////////////////////////////////////////////////////////
//////////////////////////// PRIMARY INTERFACE ///////////////////////////////
//////////////////////////////////////////////////////////////////////////////
Standard_Board_Builder(const Scrabble_Game& parent) : Board_Builder(parent) {}
virtual void build_board(Scrabble_Board* board) const;
static const unsigned BOARD_DIM = 15;
private: // ================ PRIVATE INTERFACE ================================
//////////////////////////////////////////////////////////////////////////////
////////////////////////// FORBIDDEN METHODS /////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
Standard_Board_Builder(const Standard_Board_Builder&);
Standard_Board_Builder& operator=(const Standard_Board_Builder&);
};
#endif