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

#include <BlockMgr.h>

Classes

struct  BlockBreakActorCreateInfo
struct  BlockBreakCheckInfo
struct  BlockBreakEffectCreateInfo
struct  BlockCreateInfo
struct  ItemCreateDirInfo

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 brokenBlockActorCreate (BlockBreakActorCreateInfo &info, bool no_add_score)
void brokenBlockEffectCreate (BlockBreakEffectCreateInfo &info, bool no_play_sound, bool no_add_score)
void blockBreakCheck (BlockBreakCheckInfo &info)
void checkDrcTouchBlockCreate (sead::Vector2f &pos)
void DrcTouchBlockCreate (sead::Vector2f &pos)
bool blockCreate (BlockCreateInfo &create_info)
ActorBlockBase::ObjBlockInfo getObjBlockInfo (sead::Vector3f &pos, u32 area_no)
void executeTenCoin ()
ActorBlockBase::ObjBlockInfo checkTenCoin (sead::Vector3f &pos)
void setObjBlockInfo (sead::Vector3f &pos, ActorBlockBase::ObjBlockInfo block_info, u32 area_no)
ActorBlockBase::Type blockPanelTypeNoChenge (u16 unit)
bool setblockBreakEffect (sead::Vector3f &pos)
void chikuwaCreateSet (const sead::Vector2f &pos)
u32 chengeItemFromCoin (u32, BlockCoinBase::Content content)
void createTouchBlockBreakCoin (sead::Vector3f &pos)
void getYossyCount ()
bool itemDirCheck (const ItemCreateDirInfo *dir_info)
void createCommonYoshiEgg (sead::Vector3f &pos, u32, u32, signed char, u32)
void createYoshiEgg (sead::Vector3f &pos, u32, u32, signed char)
void createSanboEatYoshiEgg (sead::Vector3f &pos, u32, u32, signed char, u32)

Static Public Attributes

static const u16 cQuestionItemNo [18]
static const u16 cRengaItemNo [18]
static const u16 cClarityItemNo [18]
static const u16 cBreakBlockColorType [4]

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

◆ brokenBlockActorCreate()

void BlockMgr::brokenBlockActorCreate ( BlockBreakActorCreateInfo & info,
bool no_add_score )

◆ brokenBlockEffectCreate()

void BlockMgr::brokenBlockEffectCreate ( BlockBreakEffectCreateInfo & info,
bool no_play_sound,
bool no_add_score )

◆ blockBreakCheck()

void BlockMgr::blockBreakCheck ( BlockBreakCheckInfo & info)

◆ checkDrcTouchBlockCreate()

void BlockMgr::checkDrcTouchBlockCreate ( sead::Vector2f & pos)

◆ DrcTouchBlockCreate()

void BlockMgr::DrcTouchBlockCreate ( sead::Vector2f & pos)

◆ blockCreate()

bool BlockMgr::blockCreate ( BlockCreateInfo & create_info)

◆ getObjBlockInfo()

ActorBlockBase::ObjBlockInfo BlockMgr::getObjBlockInfo ( sead::Vector3f & pos,
u32 area_no )

◆ executeTenCoin()

void BlockMgr::executeTenCoin ( )

◆ checkTenCoin()

ActorBlockBase::ObjBlockInfo BlockMgr::checkTenCoin ( sead::Vector3f & pos)

◆ setObjBlockInfo()

void BlockMgr::setObjBlockInfo ( sead::Vector3f & pos,
ActorBlockBase::ObjBlockInfo block_info,
u32 area_no )

◆ blockPanelTypeNoChenge()

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

◆ setblockBreakEffect()

bool BlockMgr::setblockBreakEffect ( sead::Vector3f & pos)

◆ chikuwaCreateSet()

void BlockMgr::chikuwaCreateSet ( const sead::Vector2f & pos)

◆ chengeItemFromCoin()

u32 BlockMgr::chengeItemFromCoin ( u32 ,
BlockCoinBase::Content content )

◆ createTouchBlockBreakCoin()

void BlockMgr::createTouchBlockBreakCoin ( sead::Vector3f & pos)

◆ getYossyCount()

void BlockMgr::getYossyCount ( )

◆ itemDirCheck()

bool BlockMgr::itemDirCheck ( const ItemCreateDirInfo * dir_info)

◆ createCommonYoshiEgg()

void BlockMgr::createCommonYoshiEgg ( sead::Vector3f & pos,
u32 ,
u32 ,
signed char ,
u32  )

◆ createYoshiEgg()

void BlockMgr::createYoshiEgg ( sead::Vector3f & pos,
u32 ,
u32 ,
signed char  )

◆ createSanboEatYoshiEgg()

void BlockMgr::createSanboEatYoshiEgg ( sead::Vector3f & pos,
u32 ,
u32 ,
signed char ,
u32  )

Member Data Documentation

◆ cQuestionItemNo

const u16 BlockMgr::cQuestionItemNo[18]
static

◆ cRengaItemNo

const u16 BlockMgr::cRengaItemNo[18]
static

◆ cClarityItemNo

const u16 BlockMgr::cClarityItemNo[18]
static

◆ cBreakBlockColorType

const u16 BlockMgr::cBreakBlockColorType[4]
static

◆ _0

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

◆ mBlockState

BlockState BlockMgr::mBlockState[3001]
protected

◆ _f0d4

u32 BlockMgr::_f0d4
protected

◆ mBlockStateCount

u32 BlockMgr::mBlockStateCount
protected