|
void | set_score_increase_step (int step=Settings::Score::DEF_STEP) |
| Sets score increment step size.
|
|
void | increase_once () |
| Increments score once using current step.
|
|
void | increase_once (int score) |
| Increments score by specified amount.
|
|
void | set_increase_automatically (bool st) |
| Enables/disables automatic score increase.
|
|
void | force_reset () |
| Resets score to initial value.
|
|
◆ ScoreManager()
ScoreManager::ScoreManager |
( |
QObject * |
parent | ) |
|
|
explicit |
◆ get_score()
int ScoreManager::get_score |
( |
| ) |
const |
|
inline |
Gets current score.
- Returns
- Current score value
◆ get_step()
int ScoreManager::get_step |
( |
| ) |
const |
|
inline |
Gets current score increment step.
- Returns
- Current step value
◆ increase_once
void ScoreManager::increase_once |
( |
int |
score | ) |
|
|
slot |
Increments score by specified amount.
- Parameters
-
◆ set_increase_automatically
void ScoreManager::set_increase_automatically |
( |
bool |
st | ) |
|
|
slot |
Enables/disables automatic score increase.
- Parameters
-
st | True to enable auto-increase |
◆ set_score_increase_step
void ScoreManager::set_score_increase_step |
( |
int |
step = Settings::Score::DEF_STEP | ) |
|
|
slot |
Sets score increment step size.
- Parameters
-
step | Increment step (default: Settings::Score::DEF_STEP) |
The documentation for this class was generated from the following files:
- extern_app/games/CCIMX_DinoGame/core/ScoreManager.h
- extern_app/games/CCIMX_DinoGame/core/ScoreManager.cpp