New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
BlockMgr Class Reference

#include <BlockMgr.h>

Classes

struct  DestroyParam
struct  HitParam

Public Types

enum  RengaContent {
  cRengaContent_Empty = 0 , cRengaContent_Coin = 1 , cRengaContent_MultiCoin = 2 , cRengaContent_FireFlower = 3 ,
  cRengaContent_Star = 4 , cRengaContent_1UP = 5 , cRengaContent_Vine = 6 , cRengaContent_MiniMushroom = 7 ,
  cRengaContent_Propeller = 8 , cRengaContent_Penguin = 9 , cRengaContent_Yoshi = 10 , cRengaContent_IceFlower = 11 ,
  cRengaContent_None = 12 , cRengaContent_SquirrelMushroom = 13 , cRengaContent_Num = 14
}
 Content enum for cType_BreakBlock units. More...
enum  HatenaContent {
  cHatenaContent_Coin = 0 , cHatenaContent_FireFlower = 1 , cHatenaContent_Star = 2 , cHatenaContent_ContinuousStar = 3 ,
  cHatenaContent_Vine = 4 , cHatenaContent_Spring = 5 , cHatenaContent_MiniMushroom = 6 , cHatenaContent_Propeller = 7 ,
  cHatenaContent_Penguin = 8 , cHatenaContent_Yoshi = 9 , cHatenaContent_IceFlower = 10 , cHatenaContent_SquirrelMushroom = 11 ,
  cHatenaContent_Num = 12
}
 Content enum for cType_Q_Block units. More...

Public Member Functions

void destroy (ActorBlockBase::DestroyedParam &param, bool no_add_score)
void destroy2 (ActorBlockBase::DestroyedParam2 &param, bool no_play_sound, bool no_add_score)
void doDestroyAt (DestroyParam &param)
void feverModeBlockReact (sead::Vector2f &at)
void feverModeHitBlockAt (sead::Vector2f &at)
bool hitBlockAt (HitParam &hit_param)
ActorBlockBase::ActiveState getBlockActiveState (sead::Vector3f &pos_for_state, u32 area_no)
ActorBlockBase::ActiveState getMultiCoinStateAt (sead::Vector3f &at)
void setStateForBlockAt (sead::Vector3f &at, ActorBlockBase::ActiveState state, u32 area_no)
ActorBlockBase::Type unitToType (u16 unit)
void update ()

Protected Attributes

u8 _0 [101][16]
BlockState mBlockState [3001]
u32 _f0d4
u32 mBlockStateCount

Private Member Functions

 SEAD_SINGLETON_DISPOSER (BlockMgr)

Member Enumeration Documentation

◆ RengaContent

Content enum for cType_BreakBlock units.

Bit shift the unit 10 right and mask 0xF to get this.

Enumerator
cRengaContent_Empty 
cRengaContent_Coin 
cRengaContent_MultiCoin 
cRengaContent_FireFlower 
cRengaContent_Star 
cRengaContent_1UP 
cRengaContent_Vine 
cRengaContent_MiniMushroom 
cRengaContent_Propeller 
cRengaContent_Penguin 
cRengaContent_Yoshi 
cRengaContent_IceFlower 
cRengaContent_None 
cRengaContent_SquirrelMushroom 
cRengaContent_Num 

◆ HatenaContent

Content enum for cType_Q_Block units.

Bit shift the unit 10 right and mask 0xF to get this.

Enumerator
cHatenaContent_Coin 
cHatenaContent_FireFlower 
cHatenaContent_Star 
cHatenaContent_ContinuousStar 
cHatenaContent_Vine 
cHatenaContent_Spring 
cHatenaContent_MiniMushroom 
cHatenaContent_Propeller 
cHatenaContent_Penguin 
cHatenaContent_Yoshi 
cHatenaContent_IceFlower 
cHatenaContent_SquirrelMushroom 
cHatenaContent_Num 

Member Function Documentation

◆ SEAD_SINGLETON_DISPOSER()

BlockMgr::SEAD_SINGLETON_DISPOSER ( BlockMgr )
private

◆ destroy()

void BlockMgr::destroy ( ActorBlockBase::DestroyedParam & param,
bool no_add_score )

◆ destroy2()

void BlockMgr::destroy2 ( ActorBlockBase::DestroyedParam2 & param,
bool no_play_sound,
bool no_add_score )

◆ doDestroyAt()

void BlockMgr::doDestroyAt ( DestroyParam & param)

◆ feverModeBlockReact()

void BlockMgr::feverModeBlockReact ( sead::Vector2f & at)

◆ feverModeHitBlockAt()

void BlockMgr::feverModeHitBlockAt ( sead::Vector2f & at)

◆ hitBlockAt()

bool BlockMgr::hitBlockAt ( HitParam & hit_param)

◆ getBlockActiveState()

ActorBlockBase::ActiveState BlockMgr::getBlockActiveState ( sead::Vector3f & pos_for_state,
u32 area_no )

◆ getMultiCoinStateAt()

ActorBlockBase::ActiveState BlockMgr::getMultiCoinStateAt ( sead::Vector3f & at)

◆ setStateForBlockAt()

void BlockMgr::setStateForBlockAt ( sead::Vector3f & at,
ActorBlockBase::ActiveState state,
u32 area_no )

◆ unitToType()

ActorBlockBase::Type BlockMgr::unitToType ( u16 unit)

◆ update()

void BlockMgr::update ( )

Member Data Documentation

◆ _0

u8 BlockMgr::_0[101][16]
protected

◆ mBlockState

BlockState BlockMgr::mBlockState[3001]
protected

◆ _f0d4

u32 BlockMgr::_f0d4
protected

◆ mBlockStateCount

u32 BlockMgr::mBlockStateCount
protected