Public Member Functions

GameWidget Class Reference

Main game interface. More...

#include <UI/GameWidget.hpp>

List of all members.

Public Member Functions

 GameWidget (QWidget *parent=NULL)
Qt2DDisplaygetRenderer ()
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.

Detailed Description

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.

Todo:
The problem is that this class also implements a game factory
See also:
GameLauncher, AbstractGame, Qt2DDisplay

Constructor & Destructor Documentation

GameWidget::GameWidget ( QWidget *  parent = NULL  ) 
Parameters:
parent 

Member Function Documentation

Qt2DDisplay* GameWidget::getRenderer (  )  [inline]

\ßrief Gets the renderer

Returns:

The documentation for this class was generated from the following files:
 All Classes Functions Variables