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

Board scroll listener. More...

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

Public Member Functions

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...
 

Detailed Description

Board scroll listener.

Constructor & Destructor Documentation

◆ ~BoardScrollListener()

virtual stmg::BoardScrollListener::~BoardScrollListener ( )
virtualdefaultnoexcept

Member Function Documentation

◆ boardPostScroll()

virtual void stmg::BoardScrollListener::boardPostScroll ( Direction::VALUE  eDir)
pure virtualnoexcept

Post scroll callback.

Called by Level::boardScroll().

Parameters
eDirThe direction of the scroll.

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

◆ boardPreScroll()

virtual void stmg::BoardScrollListener::boardPreScroll ( Direction::VALUE  eDir,
const shared_ptr< TileRect > &  refTiles 
)
pure virtualnoexcept

Pre scroll callback.

Called by Level::boardScroll().

Parameters
eDirThe direction of the scroll.
refTilesThe tiles that will be placed on the freed cells. If null all empty tiles.

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