void setUserLevel(unsigned lvl)
Sets the user level, clamping it to the allowed maximum.
Definition mainwindow.h:89
unsigned thresholdFor(unsigned level)
Returns the required score threshold to unlock a level.
Definition mainwindow.h:78
void userLevelUp(unsigned newLevel)
Emitted when the user levels up.
unsigned userLevel
Definition mainwindow.h:61
MainWindow(QWidget *parent=nullptr)
Constructs the main window.
Definition mainwindow.cpp:25
void userLevelChanged(unsigned lvl)
Emitted when the user's level changes.
~MainWindow()
Destructor.
Definition mainwindow.cpp:152