Public Member Functions

NewGameDialog Class Reference

Interface to create a new game. More...

#include <UI/NewGameDialog.hpp>

List of all members.

Public Member Functions

 NewGameDialog (QWidget *parent)
int getGameType () const
 Returns the selected game type.
std::vector< int > getControlerTypes () const
 Returns the selected controlers ID.

Detailed Description

Interface to create a new game.

The interface dynamically updates following the game type choosed. It displays one combobox for the game type and some for the controlers (the number relies of the number returned by the game type) The game type can be known using getGameType() and the controlers type with getControlerTypes().

See also:
GameFactory

Constructor & Destructor Documentation

NewGameDialog::NewGameDialog ( QWidget *  parent  )  [explicit]
Parameters:
parent 

Member Function Documentation

std::vector< int > NewGameDialog::getControlerTypes (  )  const

Returns the selected controlers ID.

Returns:
int NewGameDialog::getGameType (  )  const

Returns the selected game type.

Parameters:
return 

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