|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| int32_t | gameEndedCount () const noexcept |
| int32_t | gamePauseCount () const noexcept |
| int32_t | gameAbortCount () const noexcept |
| int32_t | gameAbortAskCount () const noexcept |
| int32_t | gameQuitCount () const noexcept |
| int32_t | gameQuitAskCount () const noexcept |
| int32_t | gameRestartCount () const noexcept |
| int32_t | gameRestartAskCount () const noexcept |
| void | gameEnded () noexcept override |
| Tells the owner the game has ended. More... | |
| void | gameInterrupt (GameProxy::INTERRUPT_TYPE eInterruptType) noexcept override |
| Tells owner to possibly interrupt the current game. More... | |
Public Member Functions inherited from stmg::GameOwner | |
| virtual | ~GameOwner () noexcept=default |
Public Attributes | |
| int32_t | m_nGameEndedCount |
| int32_t | m_nGamePauseCount |
| int32_t | m_nGameAbortCount |
| int32_t | m_nGameAbortAskCount |
| int32_t | m_nGameQuitCount |
| int32_t | m_nGameQuitAskCount |
| int32_t | m_nGameRestartCount |
| int32_t | m_nGameRestartAskCount |
Protected Member Functions | |
| virtual void | setup () |
| virtual void | teardown () |
| void | resetGameOwner () noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineoverridevirtualnoexcept |
Tells the owner the game has ended.
This function expects the owner to add the scores of the team(s) to the highscores if available.
Implements stmg::GameOwner.
|
inlinenoexcept |
|
inlineoverridevirtualnoexcept |
Tells owner to possibly interrupt the current game.
For INTERRUPT_PAUSE the owner will in turn stop calling Game::handleTimer() and Game::handleInput() for as long as the game remains paused.
The owner should also momentarily pause the game for all interrupt that ask the "Are you sure" question.
| eInterruptType | The interrupt type. |
Implements stmg::GameOwner.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlineprotectednoexcept |
|
inlineprotectedvirtual |
Reimplemented in stmg::testing::GameFixture.
|
inlineprotectedvirtual |
Reimplemented in stmg::testing::GameFixture.
| int32_t stmg::testing::GameOwnerFixture::m_nGameAbortAskCount |
| int32_t stmg::testing::GameOwnerFixture::m_nGameAbortCount |
| int32_t stmg::testing::GameOwnerFixture::m_nGameEndedCount |
| int32_t stmg::testing::GameOwnerFixture::m_nGamePauseCount |
| int32_t stmg::testing::GameOwnerFixture::m_nGameQuitAskCount |
| int32_t stmg::testing::GameOwnerFixture::m_nGameQuitCount |
| int32_t stmg::testing::GameOwnerFixture::m_nGameRestartAskCount |
| int32_t stmg::testing::GameOwnerFixture::m_nGameRestartCount |
1.8.13