unsigned userLevel() const
Returns the current user level.
Definition mainwindow.h:84
void setUserLevel(unsigned lvl)
Sets the user level, clamping it to the allowed maximum.
Definition mainwindow.h:90
unsigned thresholdFor(unsigned level)
Returns the required score threshold to unlock a level.
Definition mainwindow.h:79
void userLevelUp(unsigned newLevel)
Emitted when the user levels up.
unsigned userLevel
Definition mainwindow.h:62
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