Deep RTS
BaseGUI.h
Go to the documentation of this file.
1//
2// Created by per on 9/5/21.
3//
4
5#ifndef DEEPRTS_BASEGUI_H
6#define DEEPRTS_BASEGUI_H
7
8#include <opencv2/core/mat.hpp>
9
10class Game;
11class Tile;
12
13
14class BaseGUI{
15
16protected:
17 const Game& game;
18public:
19 cv::Mat renderData;
20 explicit BaseGUI(Game& game);
21
22 virtual const cv::Mat& render()const = 0;
23 virtual void onTileChange(const Tile&) = 0;
24};
25
26
27#endif //DEEPRTS_BASEGUI_H
Definition: BaseGUI.h:14
cv::Mat renderData
Definition: BaseGUI.h:19
virtual void onTileChange(const Tile &)=0
virtual const cv::Mat & render() const =0
BaseGUI(Game &game)
Definition: BaseGUI.cpp:7
const Game & game
Definition: BaseGUI.h:17
Definition: Game.h:23
Definition: Tile.h:21