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

Public Member Functions

virtual ~QueryTileRemoval () noexcept=default
 
virtual int32_t wouldRemoveTiles (const ExtendedBoard &oBoard, const NRect &oExtArea) noexcept=0
 Tells whether tiles would be removed in an extended board. More...
 

Constructor & Destructor Documentation

◆ ~QueryTileRemoval()

virtual stmg::QueryTileRemoval::~QueryTileRemoval ( )
virtualdefaultnoexcept

Member Function Documentation

◆ wouldRemoveTiles()

virtual int32_t stmg::QueryTileRemoval::wouldRemoveTiles ( const ExtendedBoard oBoard,
const NRect oExtArea 
)
pure virtualnoexcept

Tells whether tiles would be removed in an extended board.

The extended area doesn't need to even intersect with the initialization area.

Parameters
oBoardThe extended board.
oExtAreaThe extended area that could also be partly outside the level's board. Size must be positive.
Returns
The number of tiles that would be removed.