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

Board listener. More...

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

Public Member Functions

virtual void boardPreInsert (Direction::VALUE eDir, NRect oArea, const shared_ptr< TileRect > &refTiles) noexcept=0
 Pre insert callback. More...
 
virtual void boardPostInsert (Direction::VALUE eDir, NRect oArea) noexcept=0
 Post insert callback. More...
 
virtual void boardPreDestroy (const Coords &oCoords) noexcept=0
 Pre destroy callback. More...
 
virtual void boardPostDestroy (const Coords &oCoords) noexcept=0
 Post destroy callback. More...
 
virtual void boardPreModify (const TileCoords &oTileCoords) noexcept=0
 Pre modify callback. More...
 
virtual void boardPostModify (const Coords &oCoords) noexcept=0
 Post modify callback. More...
 
- Public Member Functions inherited from stmg::BoardScrollListener
virtual ~BoardScrollListener () noexcept=default
 
virtual void boardPreScroll (Direction::VALUE eDir, const shared_ptr< TileRect > &refTiles) noexcept=0
 Pre scroll callback. More...
 
virtual void boardPostScroll (Direction::VALUE eDir) noexcept=0
 Post scroll callback. More...
 
- Public Member Functions inherited from stmg::BoaBloListener
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

Board listener.

Member Function Documentation

◆ boardPostDestroy()

virtual void stmg::BoardListener::boardPostDestroy ( const Coords oCoords)
pure virtualnoexcept

Post destroy callback.

Called by Level::boardDestroy().

Parameters
oCoordsThe destroyed tiles (now empty) positions.

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

◆ boardPostInsert()

virtual void stmg::BoardListener::boardPostInsert ( Direction::VALUE  eDir,
NRect  oArea 
)
pure virtualnoexcept

Post insert callback.

Called by Level::boardInsert().

Parameters
eDirThe direction.
oAreaThe modified area.

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

◆ boardPostModify()

virtual void stmg::BoardListener::boardPostModify ( const Coords oCoords)
pure virtualnoexcept

Post modify callback.

Called by Level::boardModify().

Parameters
oCoordsThe positions of the modified tiles.

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

◆ boardPreDestroy()

virtual void stmg::BoardListener::boardPreDestroy ( const Coords oCoords)
pure virtualnoexcept

Pre destroy callback.

Called by Level::boardDestroy().

Parameters
oCoordsThe destroyed tiles' position.

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

◆ boardPreInsert()

virtual void stmg::BoardListener::boardPreInsert ( Direction::VALUE  eDir,
NRect  oArea,
const shared_ptr< TileRect > &  refTiles 
)
pure virtualnoexcept

Pre insert callback.

Called by Level::boardInsert().

Parameters
eDirThe direction.
oAreaThe area. Is within board.
refTilesThe tiles to insert.

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

◆ boardPreModify()

virtual void stmg::BoardListener::boardPreModify ( const TileCoords oTileCoords)
pure virtualnoexcept

Pre modify callback.

Called by Level::boardModify().

Parameters
oTileCoordsThe new tiles and their position.

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