Deep RTS
PyGUI.h
Go to the documentation of this file.
1//
2// Created by per on 06.06.18.
3//
4#pragma once
5
6#include <pybind11/pytypes.h>
7#include "BaseGUI.h"
8
9class Tile;
10
11class PyGUI: public BaseGUI{
12private:
13 pybind11::object gui;
14 pybind11::object gui_attr_on_tile_change;
15
16 pybind11::object gui_attr_render;
17 pybind11::object gui_attr_view;
18
19 static void initDependencies();
20 static void initArgv();
21 static void initCython();
22 void initGUI();
23
24public:
25 cv::Mat renderData; // TODO
26 PyGUI(Game&);
27
28 ~PyGUI();
29
30 const cv::Mat& render()const override;
31 void onTileChange(const Tile &tile);
32};
Definition: BaseGUI.h:14
Definition: Game.h:23
Definition: PyGUI.h:11
~PyGUI()
Definition: PyGUI.cpp:21
void onTileChange(const Tile &tile)
Definition: PyGUI.cpp:67
const cv::Mat & render() const override
Definition: PyGUI.cpp:73
cv::Mat renderData
Definition: PyGUI.h:25
PyGUI(Game &)
Definition: PyGUI.cpp:10
Definition: Tile.h:21