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

The common board and block listener. More...

Inheritance diagram for stmg::BoaBloListener:
Inheritance graph
[legend]

Public Member Functions

virtual ~BoaBloListener () noexcept=default
 
virtual void boabloPreFreeze (LevelBlock &oBlock) noexcept=0
 Pre freeze callback. More...
 
virtual void boabloPostFreeze (const Coords &oCoords) noexcept=0
 Post freeze callback. More...
 
virtual void boabloPreUnfreeze (const Coords &oCoords) noexcept=0
 Pre unfreeze callback. More...
 
virtual void boabloPostUnfreeze (LevelBlock &oBlock) noexcept=0
 Post unfreeze callback. More...
 

Detailed Description

The common board and block listener.

When block becomes board and board becomes a block.

Constructor & Destructor Documentation

◆ ~BoaBloListener()

virtual stmg::BoaBloListener::~BoaBloListener ( )
virtualdefaultnoexcept

Member Function Documentation

◆ boabloPostFreeze()

virtual void stmg::BoaBloListener::boabloPostFreeze ( const Coords oCoords)
pure virtualnoexcept

Post freeze callback.

The block has been removed and the board modified. Called by LevelBlock::freeze().

Parameters
oCoordsThe coords of the modified cells.

Implemented in stmg::FakeLevelView, stmg::TileAnimatorEvent, and stmg::DumbBlockEvent.

◆ boabloPostUnfreeze()

virtual void stmg::BoaBloListener::boabloPostUnfreeze ( LevelBlock oBlock)
pure virtualnoexcept

Post unfreeze callback.

The block has been created and the board cells emptied. Called by Level::boabloUnfreeze().

Parameters
oBlock

Implemented in stmg::FakeLevelView, stmg::TileAnimatorEvent, and stmg::DumbBlockEvent.

◆ boabloPreFreeze()

virtual void stmg::BoaBloListener::boabloPreFreeze ( LevelBlock oBlock)
pure virtualnoexcept

Pre freeze callback.

Called by LevelBlock::freeze().

Parameters
oBlockThe block that will freeze on the board.

Implemented in stmg::FakeLevelView, stmg::TileAnimatorEvent, and stmg::DumbBlockEvent.

◆ boabloPreUnfreeze()

virtual void stmg::BoaBloListener::boabloPreUnfreeze ( const Coords oCoords)
pure virtualnoexcept

Pre unfreeze callback.

Called by Level::boabloUnfreeze().

Parameters
oCoordsThe coords of the cells that will be used for the block. Is not empty.

Implemented in stmg::FakeLevelView, stmg::TileAnimatorEvent, and stmg::DumbBlockEvent.