-
Notifications
You must be signed in to change notification settings - Fork 0
/
GUIDisplay.h
38 lines (34 loc) · 849 Bytes
/
GUIDisplay.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
34
35
36
37
38
#ifndef _GUI_DISPLAY_
#define _GUI_DISPLAY_
#include <vector>
#include <memory>
#include "Observer.h"
#include "BoardSubject.h"
#include "GUIBoardArea.h"
#include "coordinate.h"
#include <thread>
#include <gtkmm/window.h>
struct PImplGUIDisplay
{
std::shared_ptr<BoardSubject> subject;
int argc_;
char** argv_;
bool guiDisplayed_;
std::shared_ptr<BoardArea> boardDisplay;
};
class GUIDisplay: public Observer
{
public:
GUIDisplay(std::shared_ptr<BoardSubject> bs, int argc, char** argv);
~GUIDisplay();
void update() override;
char getBoardCharacter(int row, int col) const;
private:
std::shared_ptr<PImplGUIDisplay> td_;
int argc_;
char** argv_;
bool guiDisplayed_;
std::shared_ptr<BoardArea> boardDisplay;
int displayGUI();
};
#endif