-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGameEngine.h
33 lines (27 loc) · 896 Bytes
/
GameEngine.h
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
#include <string>
#include <vector>
#include "Player.h"
#include "Factory.h"
#include "LinkedList.h"
#ifndef A2_GameEngine
#define A2_GameEngine
class GameEngine {
public:
GameEngine();
~GameEngine();
void startGame(Command type, std::istream& sstream);
void loadTileBag(std::istream& sstream);
private:
Player** players;
LinkedList* tileBag;
std::vector <std::string> gameLog;
Factory* factory;
void setUp(Command const type, std::istream& sstream);
void createTileBag(int seed);
bool takeTurns(Command& type, std::istream &sstream);
bool promptInput(std::string& command, int &factoryIndex, char& tile, int& rowIndex, Player* currentPlayer, const Command type, std::istream& sstream);
void saveGame(std::string& filename);
void saveGameDetails();
//void saveLog(std::ofstream &outStream);
};
#endif // COSC_ASSIGN_ONE_Position