|
stmm-games-doc
0.32.0
|
Fake LevelView for testing. More...

Classes | |
| struct | AnimationCreate |
| struct | AnimationRemove |
| struct | BlockPostAdd |
| struct | BlockPostDestroy |
| struct | BlockPostFuse |
| struct | BlockPostRemove |
| struct | BlockPreAdd |
| struct | BlockPreDestroy |
| struct | BlockPreFuse |
| struct | BlockPreRemove |
| struct | BoabloPostFreeze |
| struct | BoabloPostUnfreeze |
| struct | BoabloPreFreeze |
| struct | BoabloPreUnfreeze |
| struct | BoardAnimateTiles |
| struct | BoardPostDestroy |
| struct | BoardPostInsert |
| struct | BoardPostModify |
| struct | BoardPostScroll |
| struct | BoardPreDestroy |
| struct | BoardPreInsert |
| struct | BoardPreModify |
| struct | BoardPreScroll |
| class | Called |
| Base class for retaining callback information. More... | |
Public Member Functions | |
| FakeLevelView (Game *p0Game, Level *p0Level) noexcept | |
| void | boardAnimateTiles (NRect oArea) noexcept override |
| Tells the view that an area of tiles has to be animated. More... | |
| void | boardAnimateTile (NPoint oXY) noexcept override |
| Tells the view that a tile has to be animated. More... | |
| bool | animationCreate (const shared_ptr< LevelAnimation > &refLevelAnimation) noexcept override |
| Creates an animation in the view. More... | |
| bool | animationRemove (const shared_ptr< LevelAnimation > &refLevelAnimation) noexcept override |
| Removes animation from view. More... | |
| void | boardPreScroll (Direction::VALUE eDir, const shared_ptr< TileRect > &refTiles) noexcept override |
| Pre scroll callback. More... | |
| void | boardPostScroll (Direction::VALUE eDir) noexcept override |
| Post scroll callback. More... | |
| void | boabloPreFreeze (LevelBlock &oBlock) noexcept override |
| Pre freeze callback. More... | |
| void | boabloPostFreeze (const Coords &oCoords) noexcept override |
| Post freeze callback. More... | |
| void | boabloPreUnfreeze (const Coords &oCoords) noexcept override |
| Pre unfreeze callback. More... | |
| void | boabloPostUnfreeze (LevelBlock &oBlock) noexcept override |
| Post unfreeze callback. More... | |
| void | boardPreInsert (Direction::VALUE eDir, NRect oArea, const shared_ptr< TileRect > &refTiles) noexcept override |
| Pre insert callback. More... | |
| void | boardPostInsert (Direction::VALUE eDir, NRect oArea) noexcept override |
| Post insert callback. More... | |
| void | boardPreDestroy (const Coords &oCoords) noexcept override |
| Pre destroy callback. More... | |
| void | boardPostDestroy (const Coords &oCoords) noexcept override |
| Post destroy callback. More... | |
| void | boardPreModify (const TileCoords &oTileCoords) noexcept override |
| Pre modify callback. More... | |
| void | boardPostModify (const Coords &oCoords) noexcept override |
| Post modify callback. More... | |
| void | blockPreAdd (const LevelBlock &oBlock) noexcept override |
| Pre block added callback. More... | |
| void | blockPostAdd (LevelBlock &oBlock) noexcept override |
| Post block added callback. More... | |
| void | blockPreRemove (LevelBlock &oBlock) noexcept override |
| Pre block removed callback. More... | |
| void | blockPostRemove (const LevelBlock &oBlock) noexcept override |
| Post block removed callback. More... | |
| void | blockPreDestroy (LevelBlock &oBlock) noexcept override |
| Pre block destroyed callback. More... | |
| void | blockPostDestroy (const LevelBlock &oBlock) noexcept override |
| Post block destroyed callback. More... | |
| void | blockPreFuse (LevelBlock &oFusedToBlock, LevelBlock &oFusedBlock) noexcept override |
| Pre block fusion callback. More... | |
| 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 override |
| Post block fusion callback. More... | |
| const std::vector< unique_ptr< Called > > & | getAllCalled () noexcept |
| The Called objects. More... | |
| template<typename T > | |
| const std::vector< T * > | getCalled () noexcept |
| The Called objects with a given template type. More... | |
| void | clear () noexcept |
| Clear all Called data structures. More... | |
Public Member Functions inherited from stmg::BoaBloListener | |
| virtual | ~BoaBloListener () noexcept=default |
Public Member Functions inherited from stmg::BoardScrollListener | |
| virtual | ~BoardScrollListener () noexcept=default |
|
overridevirtualnoexcept |
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.
| refLevelAnimation | The model animation. Cannot be null. |
Implements stmg::LevelView.
|
overridevirtualnoexcept |
Removes animation from view.
| refLevelAnimation | The model animation. Cannot be null. |
Implements stmg::LevelView.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Post block destroyed callback.
Called by LevelBlock::destroy().
| oBlock | The level block |
Implements stmg::BlocksListener.
|
overridevirtualnoexcept |
Post block fusion callback.
Called by LevelBlock::fuseTo().
The TileAnimator references of oResBlock are reset. The TileAnimator references of oFusedBlock are reset.
| oResBlock | is the result of the fusion (what was oFusedToBlock in blockPreFuse). |
| oFusedBlock | is what was added to oResBlock and removed from the level. |
| oFusedToBrickIds | is a map of the brickIds of the original oFusedToBlock to those in oResBlock. |
| oFusedBrickIds | is a map of the brickIds of oFusedBlock to those in oResBlock. |
Implements stmg::BlocksListener.
|
overridevirtualnoexcept |
Post block removed callback.
Called by LevelBlock::remove().
| oBlock | The level block |
Implements stmg::BlocksListener.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Pre block destroyed callback.
Called by LevelBlock::destroy().
| oBlock | The level block |
Implements stmg::BlocksListener.
|
overridevirtualnoexcept |
Pre block fusion callback.
Called by LevelBlock::fuseTo().
| oFusedToBlock | The block to which oFusedBlock will be attached. |
| oFusedBlock | The block that will be removed. |
Implements stmg::BlocksListener.
|
overridevirtualnoexcept |
Pre block removed callback.
Called by LevelBlock::remove().
| oBlock | The level block |
Implements stmg::BlocksListener.
|
overridevirtualnoexcept |
Post freeze callback.
The block has been removed and the board modified. Called by LevelBlock::freeze().
| oCoords | The coords of the modified cells. |
Implements stmg::BoaBloListener.
|
overridevirtualnoexcept |
Post unfreeze callback.
The block has been created and the board cells emptied. Called by Level::boabloUnfreeze().
| oBlock |
Implements stmg::BoaBloListener.
|
overridevirtualnoexcept |
Pre freeze callback.
Called by LevelBlock::freeze().
| oBlock | The block that will freeze on the board. |
Implements stmg::BoaBloListener.
|
overridevirtualnoexcept |
Pre unfreeze callback.
Called by Level::boabloUnfreeze().
| oCoords | The coords of the cells that will be used for the block. Is not empty. |
Implements stmg::BoaBloListener.
|
overridevirtualnoexcept |
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.
| oXY | The tile to animate. Must be within board. |
Implements stmg::LevelView.
|
overridevirtualnoexcept |
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.
| oArea | The area to animate. Must be within board and not empty. |
Implements stmg::LevelView.
|
overridevirtualnoexcept |
Post destroy callback.
Called by Level::boardDestroy().
| oCoords | The destroyed tiles (now empty) positions. |
Implements stmg::BoardListener.
|
overridevirtualnoexcept |
Post insert callback.
Called by Level::boardInsert().
| eDir | The direction. |
| oArea | The modified area. |
Implements stmg::BoardListener.
|
overridevirtualnoexcept |
Post modify callback.
Called by Level::boardModify().
| oCoords | The positions of the modified tiles. |
Implements stmg::BoardListener.
|
overridevirtualnoexcept |
Post scroll callback.
Called by Level::boardScroll().
| eDir | The direction of the scroll. |
Implements stmg::BoardScrollListener.
|
overridevirtualnoexcept |
Pre destroy callback.
Called by Level::boardDestroy().
| oCoords | The destroyed tiles' position. |
Implements stmg::BoardListener.
|
overridevirtualnoexcept |
Pre insert callback.
Called by Level::boardInsert().
| eDir | The direction. |
| oArea | The area. Is within board. |
| refTiles | The tiles to insert. |
Implements stmg::BoardListener.
|
overridevirtualnoexcept |
Pre modify callback.
Called by Level::boardModify().
| oTileCoords | The new tiles and their position. |
Implements stmg::BoardListener.
|
overridevirtualnoexcept |
Pre scroll callback.
Called by Level::boardScroll().
| eDir | The direction of the scroll. |
| refTiles | The tiles that will be placed on the freed cells. If null all empty tiles. |
Implements stmg::BoardScrollListener.
|
noexcept |
Clear all Called data structures.
|
noexcept |
|
inlinenoexcept |
The Called objects with a given template type.
Example usage: getCalled<BlockPreDestroy>().
1.8.13