stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmg::GameOwner Class Referenceabstract
Inheritance diagram for stmg::GameOwner:
Inheritance graph
[legend]

Public Member Functions

virtual ~GameOwner () noexcept=default
 
virtual void gameEnded () noexcept=0
 Tells the owner the game has ended. More...
 
virtual void gameInterrupt (GameProxy::INTERRUPT_TYPE eInterruptType) noexcept=0
 Tells owner to possibly interrupt the current game. More...
 

Constructor & Destructor Documentation

◆ ~GameOwner()

virtual stmg::GameOwner::~GameOwner ( )
virtualdefaultnoexcept

Member Function Documentation

◆ gameEnded()

virtual void stmg::GameOwner::gameEnded ( )
pure virtualnoexcept

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.

Implemented in stmg::testing::GameOwnerFixture.

◆ gameInterrupt()

virtual void stmg::GameOwner::gameInterrupt ( GameProxy::INTERRUPT_TYPE  eInterruptType)
pure virtualnoexcept

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.

Parameters
eInterruptTypeThe interrupt type.

Implemented in stmg::testing::GameOwnerFixture.