New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
BlockMgr.h
Go to the documentation of this file.
1#pragma once
2
3#include <math/seadVector.h>
4#include <heap/seadDisposer.h>
5#include <map_obj/ActorBlockBase.h>
6#include <collision/BgUnitCode.h>
7
15static_assert(sizeof(BlockState) == 0x14, "BlockState size mismatch");
16
18{
19 // createInstance() Address: 0x0270B65C
20 // deleteInstance() Address: Deleted
21 // sInstance Address: 0x101DB964
23
24public:
36 static_assert(sizeof(DestroyParam) == 0x18, "DestroyParam size mismatch");
37
38public:
39 // Address: 0x0270B90C
40 void destroy(ActorBlockBase::DestroyedParam& param, bool no_add_score);
41 // Address: 0x0270C61C
42 void destroy2(ActorBlockBase::DestroyedParam2& param, bool no_play_sound, bool no_add_score);
43 // Address: 0x0270C798
45
46 // Address: 0x0270D2F4
47 ActorBlockBase::ActiveState getBlockActiveState(sead::Vector3f& pos_for_state, u32 area_no);
48 // Address: 0x0270B7EC
50 // Address: 0x0270D420
51 void setStateForBlockAt(sead::Vector3f& at, ActorBlockBase::ActiveState state, u32 area_no);
52 // Address: 0x0270D294
53 void update();
54
55protected:
56 u8 _0[101][16];
58 u32 _f0d4; // Used to call it mArr1Count
60};
61static_assert(sizeof(BlockMgr) == 0xF0DC, "BlockMgr size mismatch");
Definition BlockMgr.h:18
BlockState mBlockState[3001]
Definition BlockMgr.h:57
ActorBlockBase::ActiveState getMultiCoinStateAt(sead::Vector3f &at)
void destroy(ActorBlockBase::DestroyedParam &param, bool no_add_score)
void update()
u32 mBlockStateCount
Definition BlockMgr.h:59
u8 _0[101][16]
Definition BlockMgr.h:56
void destroy2(ActorBlockBase::DestroyedParam2 &param, bool no_play_sound, bool no_add_score)
void doDestroyAt(DestroyParam &param)
u32 _f0d4
Definition BlockMgr.h:58
ActorBlockBase::ActiveState getBlockActiveState(sead::Vector3f &pos_for_state, u32 area_no)
void setStateForBlockAt(sead::Vector3f &at, ActorBlockBase::ActiveState state, u32 area_no)
Definition BlockMgr.h:26
ActorBgCollisionCheck * collision_check
Definition BlockMgr.h:34
s8 player_type
Definition BlockMgr.h:32
s8 sensor_id
Definition BlockMgr.h:30
u32 fragment_type
Definition BlockMgr.h:28
s8 player_no
Definition BlockMgr.h:31
u8 _13
Definition BlockMgr.h:33
sead::Vector2f position
Definition BlockMgr.h:27
u32 _c
Definition BlockMgr.h:29
Definition BlockMgr.h:9
u8 _12[2]
Definition BlockMgr.h:13
sead::Vector3f position
Definition BlockMgr.h:10
u16 area_no
Definition BlockMgr.h:12
ActorBlockBase::ActiveState state
Definition BlockMgr.h:11