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

Public Member Functions

virtual void boardAnimateTiles (NRect oArea) noexcept=0
 Tells the view that an area of tiles has to be animated. More...
 
virtual void boardAnimateTile (NPoint oXY) noexcept=0
 Tells the view that a tile has to be animated. More...
 
virtual bool animationCreate (const shared_ptr< LevelAnimation > &refLevelAnimation) noexcept=0
 Creates an animation in the view. More...
 
virtual bool animationRemove (const shared_ptr< LevelAnimation > &refLevelAnimation) noexcept=0
 Removes animation from view. More...
 
- Public Member Functions inherited from stmg::BlocksListener
virtual void blockPreAdd (const LevelBlock &oBlock) noexcept=0
 Pre block added callback. More...
 
virtual void blockPostAdd (LevelBlock &oBlock) noexcept=0
 Post block added callback. More...
 
virtual void blockPreRemove (LevelBlock &oBlock) noexcept=0
 Pre block removed callback. More...
 
virtual void blockPostRemove (const LevelBlock &oBlock) noexcept=0
 Post block removed callback. More...
 
virtual void blockPreDestroy (LevelBlock &oBlock) noexcept=0
 Pre block destroyed callback. More...
 
virtual void blockPostDestroy (const LevelBlock &oBlock) noexcept=0
 Post block destroyed callback. More...
 
virtual void blockPreFuse (LevelBlock &oFusedToBlock, LevelBlock &oFusedBlock) noexcept=0
 Pre block fusion callback. More...
 
virtual void blockPostFuse (LevelBlock &oResBlock, const LevelBlock &oFusedBlock, const std::unordered_map< int32_t, int32_t > &oFusedToBrickIds, const std::unordered_map< int32_t, int32_t > &oFusedBrickIds) noexcept=0
 Post block fusion 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...
 
- Public Member Functions inherited from stmg::BoardListener
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...
 

Member Function Documentation

◆ animationCreate()

virtual bool stmg::LevelView::animationCreate ( const shared_ptr< LevelAnimation > &  refLevelAnimation)
pure virtualnoexcept

Creates an animation in the view.

It might fail because the theme has no factory for the given model or because the animation is already active.

Parameters
refLevelAnimationThe model animation. Cannot be null.
Returns
Returns false if the corresponding ThemeAnimation couldn't be created.

Implemented in stmg::FakeLevelView.

◆ animationRemove()

virtual bool stmg::LevelView::animationRemove ( const shared_ptr< LevelAnimation > &  refLevelAnimation)
pure virtualnoexcept

Removes animation from view.

Parameters
refLevelAnimationThe model animation. Cannot be null.
Returns
Returns false if the animation already expired or was never added.

Implemented in stmg::FakeLevelView.

◆ boardAnimateTile()

virtual void stmg::LevelView::boardAnimateTile ( NPoint  oXY)
pure virtualnoexcept

Tells the view that a tile has to be animated.

The animation takes place in the view ticks following the game tick in which this function is called.

Parameters
oXYThe tile to animate. Must be within board.

Implemented in stmg::FakeLevelView.

◆ boardAnimateTiles()

virtual void stmg::LevelView::boardAnimateTiles ( NRect  oArea)
pure virtualnoexcept

Tells the view that an area of tiles has to be animated.

The animation takes place in the view ticks following the game tick in which this function is called.

Parameters
oAreaThe area to animate. Must be within board and not empty.

Implemented in stmg::FakeLevelView.