Interface to create a new game. More...
#include <UI/NewGameDialog.hpp>
Public Member Functions | |
NewGameDialog (QWidget *parent) | |
int | getGameType () const |
Returns the selected game type. | |
std::vector< int > | getControlerTypes () const |
Returns the selected controlers ID. |
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().
NewGameDialog::NewGameDialog | ( | QWidget * | parent | ) | [explicit] |
parent |
std::vector< int > NewGameDialog::getControlerTypes | ( | ) | const |
Returns the selected controlers ID.
int NewGameDialog::getGameType | ( | ) | const |
Returns the selected game type.
return |