Main game interface. More...
#include <UI/GameWidget.hpp>
Public Member Functions | |
GameWidget (QWidget *parent=NULL) | |
Qt2DDisplay * | getRenderer () |
Q_SLOT void | newGame () |
Slot for new game button. | |
Q_SLOT void | loadGame () |
Slot for load game button. | |
Q_SLOT void | saveGame () |
Slot for save game button. |
Main game interface.
This widget integrates the game scene as main item in it. Moreover, this widget does the link between the game and the interface It does create the game after calling the NewGameDialog. It also gives some menus to give more control to the game. The game also implements button to load and save history.
GameWidget::GameWidget | ( | QWidget * | parent = NULL |
) |
parent |
Qt2DDisplay* GameWidget::getRenderer | ( | ) | [inline] |
\ßrief Gets the renderer