|
| | SquarsorEvent (Init &&oInit) noexcept |
| | Constructor. More...
|
| |
| void | trigger (int32_t nMsg, int32_t nValue, Event *p0TriggeringEvent) noexcept override |
| | The trigger function. More...
|
| |
| void | handleInput (const shared_ptr< stmi::Event > &refEvent) noexcept override |
| | Input event handler. More...
|
| |
| void | handleKeyActionInput (const shared_ptr< KeyActionEvent > &refEvent) noexcept override |
| | KeyActionevent handler. More...
|
| |
| void | handleTimer () noexcept override |
| | Function called each game tick. More...
|
| |
| int32_t | blockPosZ () const noexcept override |
| | The z position. More...
|
| |
| void | fall () noexcept override |
| | Function called when block supposed to fall. More...
|
| |
| bool | remove () noexcept override |
| | Removes this block from the level. More...
|
| |
| bool | destroy () noexcept override |
| | Destroy this block. More...
|
| |
| bool | freeze () noexcept override |
| | Freeze this block. More...
|
| |
| bool | fuseTo (LevelBlock &oLevelBlock) noexcept override |
| | Fuse to another block and get removed. More...
|
| |
| bool | canFuseWith (LevelBlock &oLevelBlock) const noexcept override |
| | Whether it can fuse with another block. More...
|
| |
| bool | removeBrick (int32_t nBrickId) noexcept override |
| | Try to remove a brick from the block. More...
|
| |
| bool | destroyBrick (int32_t nBrickId) noexcept override |
| | Try to destroy a brick from the block. More...
|
| |
| LevelBlock::QUERY_ATTACK_TYPE | queryAttack (LevelBlock &, int32_t, int32_t, const Tile &) const noexcept override |
| | Whether another block can attack this block and the outcome. More...
|
| |
| bool | attack (LevelBlock &, int32_t, int32_t, const Tile &) noexcept override |
| | Another block attacks this block. More...
|
| |
| virtual | ~Event () noexcept=default |
| |
| virtual void | addMsgFilter (int32_t nInFromMsg, int32_t nInToMsg, int32_t nInFromValue, int32_t nInToValue, bool bOutMsgDefined, int32_t nOutMsg, MSG_FILTER_VALUE_OP eOutValueOperator, int32_t nOutValueOperand, int32_t nOutValueAdd) noexcept |
| | Add a message filter. More...
|
| |
| virtual void | addListener (int32_t nGroupId, Event *p0ListenerEvent, int32_t nMsg) noexcept |
| | Adds a listener to the event. More...
|
| |
| bool | isActive () const noexcept |
| | Tells whether the event is active. More...
|
| |
| int32_t | getTriggerTime () const noexcept |
| | The triggering time. More...
|
| |
| int32_t | getPriority () const noexcept |
| | The priority. More...
|
| |
| int32_t | getDebugTag () const noexcept |
| | The debug tag. More...
|
| |
| NPoint | blockPos () const noexcept |
| | The origin position of the block in the board. More...
|
| |
| const std::vector< int32_t > & | blockBrickIds () const noexcept |
| | The current brick ids of the block. More...
|
| |
| const Tile & | blockBrickTile (int32_t nBrickId) const noexcept |
| | The tile of a brick. More...
|
| |
| NPoint | blockBrickPos (int32_t nBrickId) const noexcept |
| | The position of the brick relative to the block's origin in the current shape. More...
|
| |
| bool | blockBrickVisible (int32_t nBrickId) const noexcept |
| | The visibility of the brick in the current shape. More...
|
| |
| int32_t | blockBricksTot () const noexcept |
| | The total number of bricks in the block. More...
|
| |
| int32_t | blockBricksTotVisible () const noexcept |
| | The total number of visible bricks in the current shape. More...
|
| |
| const std::vector< Block::Contact > & | blockContacts (Direction::VALUE eDir) noexcept |
| | The contact bricks in the current shape in a given direction. More...
|
| |
| NSize | blockSize () const noexcept |
| | The size of the current shape. More...
|
| |
| NPoint | blockBricksMinPos () const noexcept |
| | The minimum position (relative to blockPos) of the visible bricks of the current shape. More...
|
| |
| NPoint | blockBricksMaxPos () const noexcept |
| | The maximum position (relative to blockPos) of the visible bricks of the current shape. More...
|
| |
| virtual const std::vector< int32_t > & | blockVTBrickIds (int32_t nViewTick, int32_t nTotViewTicks) const noexcept |
| | The brick ids at a certain view tick. More...
|
| |
| virtual FPoint | blockVTPos (int32_t nViewTick, int32_t nTotViewTicks) const noexcept |
| | The origin position of the block in the board at a certain view tick. More...
|
| |
| virtual const Tile & | blockVTBrickTile (int32_t nViewTick, int32_t nTotViewTicks, int32_t nBrickId) const noexcept |
| | The tile of a brick at a certain view tick. More...
|
| |
| virtual NPoint | blockVTBrickPos (int32_t nViewTick, int32_t nTotViewTicks, int32_t nBrickId) const noexcept |
| | The position of the brick relative to the block's origin in the current shape at a certain view tick. More...
|
| |
| virtual bool | blockVTBrickVisible (int32_t nViewTick, int32_t nTotViewTicks, int32_t nBrickId) const noexcept |
| | The visibility of the brick in the current shape at a certain view tick. More...
|
| |
| virtual int32_t | blockVTPosZ (int32_t nViewTick, int32_t nTotViewTicks) const noexcept |
| | The z position at a certain view tick. More...
|
| |
| double | blockGetTileAniElapsed (int32_t nBrickId, int32_t nIdxTileAni, int32_t nViewTick, int32_t nTotViewTicks) const noexcept |
| | The tile animation unary elapsed time. More...
|
| |
| void | blockSetTileAnimator (int32_t nBrickId, int32_t nIdxTileAni, TileAnimator *p0TileAnimator, int32_t nHash) noexcept |
| | Set the tile animator for a certain tile animation and brick. More...
|
| |
| const TileAnimator * | blockGetTileAnimator (int32_t nBrickId, int32_t nIdxTileAni) const noexcept |
| | Get the current tile animator for the given tile animation and brick. More...
|
| |
| MGMT_TYPE | blockGetMgmtType () noexcept |
| |
| int32_t | blockGetId () const noexcept |
| | The LevelBlock unique identifier. More...
|
| |
| bool | isPlayerControllable () const noexcept |
| | Whether players can control this level block. More...
|
| |
| int32_t | getControllerTeam () const noexcept |
| | Potential team allowed to control this instance. More...
|
| |
| int32_t | getTeam () const noexcept |
| | The level team of the player that currently controls this instance. More...
|
| |
| int32_t | getTeammate () const noexcept |
| | The teammate of the player that currently controls this instance. More...
|
| |
| int32_t | getPlayer () const noexcept |
| | The level player that currently controls this instance. More...
|
| |
|
| void | reInit (Init &&oInit) noexcept |
| | Reinitialization. More...
|
| |
| void | onScrolled (Direction::VALUE eDir) noexcept override |
| | Called when the block was scrolled. More...
|
| |
| void | onPlayerChanged () noexcept override |
| | Called when controlling player was changed by level. More...
|
| |
| void | handlePointerInput (stmi::PointerEvent::POINTER_INPUT_TYPE eType, double fNewX, double fNewY, int32_t nButton, bool bInformMove) noexcept |
| |
| void | handleTouchInput (stmi::TouchEvent::TOUCH_INPUT_TYPE eType, double fNewX, double fNewY, int64_t nFingerId, bool bInformMove) noexcept |
| |
| | Event (Init &&oInit) noexcept |
| | Constructor. More...
|
| |
| void | reInit (Init &&oInit) noexcept |
| | Reinitialization. More...
|
| |
| virtual void | informListeners (int32_t nGroupId, int32_t nValue) noexcept |
| | Calls the trigger function of a group of listeners. More...
|
| |
| const Level & | level () const noexcept |
| | The level this event belongs to. More...
|
| |
| Level & | level () noexcept |
| | The level this event belongs to. More...
|
| |
| | LevelBlock (bool bRemoveEmptyShapes) noexcept |
| | Constructor. More...
|
| |
| void | blockInitialSet (const Block &oBlock, int32_t nShapeId, NPoint oPos, bool bControllable, int32_t nControllerTeam) noexcept |
| | Initialization function. More...
|
| |
| bool | blockIsAutoScrolled () noexcept |
| | Whether the block is automatically scrolled by the level. More...
|
| |
| bool | blockIsAutoOwner () noexcept |
| | Whether the cell owner is automatically set by the level. More...
|
| |
| const Block & | blockGet () const noexcept |
| | The underlying block. More...
|
| |
| int32_t | blockGetShapeId () const noexcept |
| | The current shape of the underlying block. More...
|
| |
| void | blockMove (int32_t nDeltaX, int32_t nDeltaY) noexcept |
| | Move the block. More...
|
| |
| void | blockMoveRotate (int32_t nShapeId, int32_t nDeltaX, int32_t nDeltaY) noexcept |
| | Set shape and move level block. More...
|
| |
| void | blockModify (int32_t nDeltaX, int32_t nDeltaY, const std::vector< int32_t > &aRemoveBrickId, const std::vector< int32_t > &aDestroyBrickId, const std::vector< std::tuple< int32_t, int32_t, int32_t, bool > > &aModifyPosBrick, const std::vector< std::pair< int32_t, Tile > > &aModifyTileBrick, const std::vector< std::tuple< Tile, int32_t, int32_t, bool > > &aAddBrick) noexcept |
| | Modifies the level block. More...
|
| |
| virtual void | onAdded () noexcept |
| | Called when block added to level. More...
|
| |
| virtual void | onUnfreezed () noexcept |
| | Called when block is added to level by unfreezing. More...
|
| |
| virtual void | onFusedWith (const LevelBlock &oLevelBlock) noexcept |
| | Called when block has fused with another (by now removed) block. More...
|
| |
| virtual void | onControllabilityChanged () noexcept |
| | Called when controllability has changed. More...
|
| |