stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmg::Game::CreateLevelCallback Class Referenceabstract

Level factory callback. More...

Inheritance diagram for stmg::Game::CreateLevelCallback:
Inheritance graph
[legend]

Public Member Functions

virtual ~CreateLevelCallback () noexcept=default
 
virtual shared_ptr< LevelcreateLevel (Game *p0Game, int32_t nLevel, const shared_ptr< AppPreferences > &refPreferences, const Level::Init &oInit) noexcept=0
 

Detailed Description

Level factory callback.

This interface allows to implement recycling

Constructor & Destructor Documentation

◆ ~CreateLevelCallback()

virtual stmg::Game::CreateLevelCallback::~CreateLevelCallback ( )
virtualdefaultnoexcept

Member Function Documentation

◆ createLevel()

virtual shared_ptr<Level> stmg::Game::CreateLevelCallback::createLevel ( Game p0Game,
int32_t  nLevel,
const shared_ptr< AppPreferences > &  refPreferences,
const Level::Init oInit 
)
pure virtualnoexcept

Implemented in stmg::testing::GameFixture.