rp-scrabble
Simple, terminal-based Scrabble game
game.h
Go to the documentation of this file.
1 
4 #ifndef GAME_H
5 #define GAME_H
6 #include <vector>
7 #include <string>
8 
9 class Board;
10 class Bag;
11 class Player;
12 class Play;
13 
17 class Game {
18 private:
21  std::vector<Player*> players;
22  std::vector<Play*> plays;
23  std::string gameID;
24  std::string logFilePath;
25  void init();
26  bool firstTurnCheck(std::string str, int r, int c, char dir);
27  void addPlayer(Player* p);
28  std::string getInput();
29  void printHelp();
30 
31 public:
32  Game();
33  ~Game();
34 
35  void run();
36 
37 };
38 
39 #endif
Definition: bag.h:15
Definition: board.h:20
Definition: game.h:17
std::vector< Player * > players
Definition: game.h:21
Board * gameBoard
Definition: game.h:19
void run()
Definition: game.cc:363
bool firstTurnCheck(std::string str, int r, int c, char dir)
Definition: game.cc:168
std::vector< Play * > plays
Definition: game.h:22
void init()
Definition: game.cc:78
Bag * gameBag
Definition: game.h:20
std::string gameID
Definition: game.h:23
Game()
Definition: game.cc:22
std::string getInput()
Definition: game.cc:196
~Game()
Definition: game.cc:44
void addPlayer(Player *p)
Definition: game.cc:68
std::string logFilePath
Definition: game.h:24
void printHelp()
Definition: game.cc:317
Definition: play.h:23
Definition: player.h:19