-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcGame.h
More file actions
38 lines (32 loc) · 662 Bytes
/
cGame.h
File metadata and controls
38 lines (32 loc) · 662 Bytes
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
/*
* game.h
*
* Created on: Jul 25, 2018
* Author: mduarte
*/
#include <iostream>
#include <unistd.h>
#include <string.h>
#include <sys/time.h>
#include <iomanip>
#include "cBoardState.h"
#ifndef CGAME_H_
#define CGAME_H_
class cGame{
private:
cBoardState *bs;
cGame();
cGame(const cGame &g2) = delete;
cGame& operator=(cGame const&){};
static cGame* mGame;
public:
static cGame* fGetGame();
static void fEndGame();
void fRun(int mode);
void fGameLoopPVP();
void fGameLoopPVA();
void fGameLoopAVA();
int fGetCmd(gameMove *m);
int fCheckCoords(std::string coords);
};
#endif /* CGAME_H_ */