unsigned userLevel() const
Returns the current user level.
Definition mainwindow.h:65
void setUserLevel(unsigned lvl)
Sets the user level, clamping it to the allowed maximum.
Definition mainwindow.h:71
unsigned thresholdFor(unsigned level)
Returns the required score threshold to unlock a level.
Definition mainwindow.h:60
void userLevelUp(unsigned newLevel)
Emitted when the user levels up.
unsigned userLevel
Definition mainwindow.h:43
MainWindow(QWidget *parent=nullptr)
Constructs the main window.
Definition mainwindow.cpp:5
void userLevelChanged(unsigned lvl)
Emitted when the user's level changes.
~MainWindow()
Destructor.
Definition mainwindow.cpp:228