Go to the source code of this file.
◆ MULTICOIN_BLOCK_MAX_COINS
#define MULTICOIN_BLOCK_MAX_COINS 10 |
◆ entity_BrickBlock_idle()
Definition at line 6 of file ShatteringBlock_common.c.
6 {
8}
BSS s32 PopupMenu_SelectedIndex
s32 entity_base_block_idle(Entity *entity)
◆ entity_breakable_block_create_shattering_entity()
void entity_breakable_block_create_shattering_entity |
( |
Entity * | entity | ) |
|
Definition at line 178 of file ShatteringBlock.c.
178 {
180
184 break;
187 break;
190 break;
193 break;
196 break;
199 break;
202 break;
209 break;
210 }
211
213 return;
214 }
215
217}
EntityBlueprint Entity_ShatteringHammer2BlockTiny
EntityBlueprint Entity_ShatteringHammer1Block
EntityBlueprint Entity_ShatteringBrickBlock
EntityBlueprint Entity_ShatteringHammer1BlockTiny
EntityBlueprint Entity_ShatteringHammer3Block
EntityBlueprint Entity_ShatteringHammer3BlockTiny
EntityBlueprint Entity_ShatteringHammer2Block
@ ENTITY_TYPE_HAMMER1_BLOCK
@ ENTITY_TYPE_SINGLE_TRIGGER_BLOCK
@ ENTITY_TYPE_HIDDEN_RED_BLOCK
@ ENTITY_TYPE_HAMMER3_BLOCK
@ ENTITY_TYPE_HAMMER2_BLOCK
@ ENTITY_TYPE_INACTIVE_BLOCK
@ ENTITY_TYPE_HAMMER3_BLOCK_TINY
@ ENTITY_TYPE_MULTI_COIN_BRICK
@ ENTITY_TYPE_BRICK_BLOCK
@ ENTITY_TYPE_HAMMER2_BLOCK_TINY
@ ENTITY_TYPE_HIDDEN_YELLOW_BLOCK
@ ENTITY_TYPE_HAMMER1_BLOCK_TINY
@ ENTITY_TYPE_YELLOW_BLOCK
u32 get_entity_type(s32 arg0)
s32 create_entity(EntityBlueprint *bp,...)
◆ entity_MulticoinBlock_update_timer()
void entity_MulticoinBlock_update_timer |
( |
Entity * | entity | ) |
|
◆ entity_base_block_setupGfx()
void entity_base_block_setupGfx |
( |
s32 | entityIndex | ) |
|
◆ entity_base_block_play_vanish_effect()
void entity_base_block_play_vanish_effect |
( |
Entity * | entity | ) |
|
◆ entity_block_hit_init_scale()
f32 entity_block_hit_init_scale |
( |
Entity * | entity | ) |
|
Definition at line 75 of file Block.c.
75 {
82 } else {
87 }
88}
◆ entity_block_hit_animate_scale()
void entity_block_hit_animate_scale |
( |
Entity * | entity | ) |
|
Definition at line 90 of file Block.c.
90 {
97 } else {
102 }
104}
s32 entity_base_block_idle(Entity *entity)
◆ entity_base_block_update_slow_sinking()
void entity_base_block_update_slow_sinking |
( |
Entity * | entity | ) |
|
Definition at line 106 of file Block.c.
106 {
110
111 if (
entity->alpha < 255) {
113 return;
114 }
115
119 return;
120 }
121
124 } else {
126 }
127
130 }
133 }
134
136
141 }
142 } else {
146 if (shadow !=
NULL) {
148
152 }
153 }
154 } else {
156 return;
157 }
158 } else {
160 if (shadow !=
NULL) {
164 }
165 }
166 }
167
170 return;
171 }
172
175 } else {
177 }
178
181 }
184 }
185
187
191 }
192 }
193}
@ ENTITY_COLLISION_PLAYER_TOUCH_CEILING
Shadow * get_shadow_by_index(s32 index)
PlayerStatus gPlayerStatus
Referenced by entity_base_block_idle().
◆ entity_base_block_idle()
s32 entity_base_block_idle |
( |
Entity * | entity | ) |
|
◆ entity_base_block_init()
◆ entity_inactive_block_hit_init()
void entity_inactive_block_hit_init |
( |
Entity * | entity | ) |
|
◆ entity_inactive_block_hit_anim()
void entity_inactive_block_hit_anim |
( |
Entity * | entity | ) |
|
Definition at line 228 of file Block.c.
228 {
231
239 }
240}
void entity_MulticoinBlock_update_timer(Entity *entity)
void exec_entity_commandlist(Entity *entity)
◆ entity_inactive_block_recoil_anim()
void entity_inactive_block_recoil_anim |
( |
Entity * | entity | ) |
|
◆ entity_MulticoinBlock_init()
void entity_MulticoinBlock_init |
( |
Entity * | entity | ) |
|
Definition at line 257 of file Block.c.
257 {
259
261 data =
entity->dataBuf.block;
265}
void entity_base_block_init(Entity *entity)
◆ entity_MulticoinBlock_spawn_coin()
void entity_MulticoinBlock_spawn_coin |
( |
Entity * | entity | ) |
|
Definition at line 267 of file Block.c.
267 {
270 s32 flagIndex;
271
276 } else {
278 flagIndex = 0;
279 }
283 }
284
291 }
292}
EntityScript Entity_CreatedInertBlock_Script
EntityBlueprint Entity_InertYellowBlock
@ ITEM_SPAWN_MODE_ITEM_BLOCK_SPAWN_ALWAYS
@ ITEM_SPAWN_MODE_ITEM_BLOCK_COIN
@ ENTITY_FLAG_PENDING_INSTANCE_DELETE
@ ENTITY_FLAG_DISABLE_COLLISION
s32 make_item_entity_nodelay(s32 itemID, f32 x, f32 y, f32 z, s32 itemSpawnMode, s32 pickupVar)
void set_entity_commandlist(Entity *entity, s32 *entityScript)
◆ entity_MulticoinBlock_idle()
void entity_MulticoinBlock_idle |
( |
Entity * | entity | ) |
|
Definition at line 308 of file Block.c.
308 {
310
313 return;
314 }
320 }
321}
@ ENTITY_COLLISION_PARTNER
◆ entity_MulticoinBlock_check_if_inactive()
void entity_MulticoinBlock_check_if_inactive |
( |
Entity * | entity | ) |
|
Definition at line 323 of file Block.c.
323 {
325
330 }
331 }
332}
s32 get_global_flag(s32 index)
◆ entity_block_handle_collision()
s32 entity_block_handle_collision |
( |
Entity * | entity | ) |
|
Definition at line 334 of file Block.c.
334 {
337
340 }
341
344 switch (type) {
353 }
354
357 }
359 }
360
362
370 }
371 }
374 }
375
380 }
381
384 } else {
386 }
387 } else {
390 }
393 }
394 }
395
405 break;
411 }
412 } else {
415 }
416 }
419 }
422 break;
428 }
431 }
434 }
437 break;
442 }
445 break;
454 break;
457 break;
459 break;
460 }
461
463}
EntityScript Entity_BreakingBlock_Script
#define sfx_play_sound_at_position
@ ENTITY_TYPE_HEALING_BLOCK_FRAME
@ ENTITY_TYPE_HEALING_BLOCK
@ ENTITY_TYPE_MULTI_TRIGGER_BLOCK
@ ENTITY_COLLISION_PLAYER_HAMMER
@ ENTITY_COLLISION_PLAYER_TOUCH_FLOOR
@ SOUND_SMASH_HAMER_BLOCK_3
@ SOUND_SMASH_HAMER_BLOCK_1
@ SOUND_SMASH_HAMER_BLOCK_2
@ ACTION_STATE_SPIN_POUND
@ ACTION_STATE_TORNADO_POUND
@ ACTION_STATE_TORNADO_JUMP
s32 entity_start_script(Entity *entity)
◆ entity_init_Hammer1Block_normal()
void entity_init_Hammer1Block_normal |
( |
Entity * | entity | ) |
|
Definition at line 465 of file Block.c.
465 {
468}
void entity_base_block_setupGfx(s32 entityIndex)
◆ entity_init_HammerBlock_small()
void entity_init_HammerBlock_small |
( |
Entity * | entity | ) |
|
◆ Entity_InertYellowBlock_Render
Gfx Entity_InertYellowBlock_Render[] |
|
extern |
Definition at line 47 of file InertYellowBlock.c.
47 {
51};
Gfx Entity_InertYellowBlock_RenderFaces[]
Gfx Entity_InertYellowBlock_RenderTopBottom[]
◆ Entity_InertRedBlock_Render
Gfx Entity_InertRedBlock_Render[] |
|
extern |
Definition at line 45 of file InertRedBlock.c.
45 {
49};
Gfx Entity_InertRedBlock_RenderTopBottom[]
Gfx Entity_InertRedBlock_RenderFaces[]
◆ Entity_BrickBlock_Render
Gfx Entity_BrickBlock_Render[] |
|
extern |
Definition at line 46 of file BrickBlock.c.
46 {
49};
Gfx Entity_BrickBlock_RenderFaces[]
◆ Entity_Hammer1Block_Render
Gfx Entity_Hammer1Block_Render[] |
|
extern |
Definition at line 48 of file Hammer1Block.c.
48 {
51};
Gfx Entity_Hammer1Block_RenderBlock[]
◆ Entity_Hammer2Block_Render
Gfx Entity_Hammer2Block_Render[] |
|
extern |
Definition at line 48 of file Hammer2Block.c.
48 {
51};
Gfx Entity_Hammer2Block_RenderBlock[]
◆ Entity_Hammer3Block_Render
Gfx Entity_Hammer3Block_Render[] |
|
extern |
Definition at line 43 of file Hammer3Block.c.
43 {
46};
Gfx Entity_Hammer3Block_RenderBlock[]
◆ Entity_PushBlock_Render
Gfx Entity_PushBlock_Render[] |
|
extern |
Definition at line 52 of file PushBlock.c.
52 {
55};
Gfx Entity_PushBlock_RenderBlock[]
◆ Entity_PowBlock_Render
Gfx Entity_PowBlock_Render[] |
|
extern |
Definition at line 68 of file PowBlock.c.
68 {
71};
Gfx Entity_PowBlock_RenderBlock[]
◆ Entity_CreatedInertBlock_Script
Initial value:= {
}
void entity_inactive_block_hit_init(Entity *entity)
EntityScript Entity_InertBlock_Script
void entity_inactive_block_recoil_anim(Entity *entity)
void entity_inactive_block_hit_anim(Entity *entity)
#define es_SetCallback(func, time)
Definition at line 513 of file Block.c.
Referenced by entity_MulticoinBlock_spawn_coin().
◆ Entity_BreakingBlock_Script
Initial value:= {
}
void entity_breakable_block_create_shattering_entity(Entity *entity)
#define es_SetFlags(flags)
#define es_RestartBoundScript
Definition at line 520 of file Block.c.
Referenced by entity_block_handle_collision().
◆ Entity_ShatteringHammer1Block
Definition at line 33 of file ShatteringBlock.c.
33 {
34 .flags = 0,
37 .modelAnimationNodes = 0,
40 .fpHandleCollision =
NULL,
43 .aabbSize = {16, 16, 16}
44};
void entity_shattering_block_init(Entity *entity)
EntityModelScript Entity_ShatteringBlock_RenderScript
EntityScript Entity_ShatteringBlock_Script
Referenced by entity_breakable_block_create_shattering_entity().
◆ Entity_ShatteringHammer2Block
◆ Entity_ShatteringHammer3Block
◆ Entity_ShatteringHammer1BlockTiny
◆ Entity_ShatteringHammer2BlockTiny
◆ Entity_ShatteringHammer3BlockTiny
◆ Entity_ShatteringBrickBlock
◆ Entity_PowBlock_Script
Initial value:= {
}
void entity_block_hit_animate_scale(Entity *entity)
f32 entity_block_hit_init_scale(Entity *entity)
#define es_PlaySound(soundId)
Definition at line 482 of file Block.c.
◆ Entity_BaseBlock_Script
Initial value:
Definition at line 491 of file Block.c.
◆ D_802E9DEC
Initial value:
Definition at line 497 of file Block.c.
◆ Entity_InertBlock_Script
Initial value:
Definition at line 503 of file Block.c.
◆ Entity_BrickBlock_Script
Initial value:= {
}
void entity_BrickBlock_idle(Entity *entity)
Definition at line 529 of file Block.c.
◆ Entity_Hammer1Block_Script
Initial value:
Definition at line 540 of file Block.c.
◆ Entity_MulticoinBlock_Script
Initial value:= {
}
void entity_MulticoinBlock_idle(Entity *entity)
void entity_MulticoinBlock_spawn_coin(Entity *entity)
void entity_MulticoinBlock_check_if_inactive(Entity *entity)
#define es_Label(labelId)
Definition at line 547 of file Block.c.
◆ Entity_InertYellowBlock_RenderScript
◆ Entity_InertRedBlock_RenderScript
◆ Entity_MulticoinBrick_RenderScript
◆ Entity_Hammer1Block_RenderScript
◆ Entity_Hammer2Block_RenderScript
◆ Entity_Hammer3Block_RenderScript
◆ Entity_PushBlock_RenderScript
◆ Entity_BrickBlock_RenderScript
◆ Entity_PowBlock_RenderScript
◆ Entity_InertYellowBlock
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 25, 25, 25 }
}
void entity_init_Hammer1Block_normal(Entity *entity)
EntityModelScript Entity_InertYellowBlock_RenderScript
s32 entity_block_handle_collision(Entity *entity)
@ ENTITY_FLAG_FIXED_SHADOW_SIZE
Definition at line 578 of file Block.c.
578 {
582 .modelAnimationNodes = 0,
588 .aabbSize = { 25, 25, 25 }
589};
Referenced by entity_ItemBlock_check_if_inactive(), entity_ItemBlock_replace_with_inactive(), entity_MulticoinBlock_check_if_inactive(), entity_MulticoinBlock_idle(), and entity_MulticoinBlock_spawn_coin().
◆ Entity_InertRedBlock
◆ Entity_BrickBlock
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 25, 25, 25 }
}
EntityModelScript Entity_BrickBlock_RenderScript
EntityScript Entity_BrickBlock_Script
Definition at line 604 of file Block.c.
604 {
608 .modelAnimationNodes = 0,
614 .aabbSize = { 25, 25, 25 }
615};
◆ Entity_MulticoinBlock
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 25, 25, 25 }
}
EntityScript Entity_MulticoinBlock_Script
EntityModelScript Entity_MulticoinBrick_RenderScript
void entity_MulticoinBlock_init(Entity *entity)
Definition at line 617 of file Block.c.
617 {
621 .modelAnimationNodes = 0,
627 .aabbSize = { 25, 25, 25 }
628};
◆ Entity_Hammer1Block
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 50, 50, 50 }
}
EntityScript Entity_Hammer1Block_Script
EntityModelScript Entity_Hammer1Block_RenderScript
Definition at line 630 of file Block.c.
630 {
634 .modelAnimationNodes = 0,
640 .aabbSize = { 50, 50, 50 }
641};
◆ Entity_Hammer1BlockWideX
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 100, 50, 50 }
}
Definition at line 643 of file Block.c.
643 {
647 .modelAnimationNodes = 0,
653 .aabbSize = { 100, 50, 50 }
654};
◆ Entity_Hammer1BlockWideZ
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 50, 50, 100 }
}
Definition at line 656 of file Block.c.
656 {
660 .modelAnimationNodes = 0,
666 .aabbSize = { 50, 50, 100 }
667};
◆ Entity_Hammer1BlockTiny
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 25, 25, 25 }
}
void entity_init_HammerBlock_small(Entity *entity)
EntityScript Entity_BaseBlock_Script
Definition at line 669 of file Block.c.
669 {
673 .modelAnimationNodes = 0,
679 .aabbSize = { 25, 25, 25 }
680};
◆ Entity_Hammer2Block
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 50, 50, 50 }
}
EntityModelScript Entity_Hammer2Block_RenderScript
Definition at line 682 of file Block.c.
682 {
686 .modelAnimationNodes = 0,
692 .aabbSize = { 50, 50, 50 }
693};
◆ Entity_Hammer2BlockWideX
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 100, 50, 50 }
}
Definition at line 695 of file Block.c.
695 {
699 .modelAnimationNodes = 0,
705 .aabbSize = { 100, 50, 50 }
706};
◆ Entity_Hammer2BlockWideZ
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 50, 50, 100 }
}
Definition at line 708 of file Block.c.
708 {
712 .modelAnimationNodes = 0,
718 .aabbSize = { 50, 50, 100 }
719};
◆ Entity_Hammer2BlockTiny
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 25, 25, 25 }
}
Definition at line 721 of file Block.c.
721 {
725 .modelAnimationNodes = 0,
731 .aabbSize = { 25, 25, 25 }
732};
◆ Entity_Hammer3Block
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 50, 50, 50 }
}
EntityModelScript Entity_Hammer3Block_RenderScript
Definition at line 734 of file Block.c.
734 {
738 .modelAnimationNodes = 0,
744 .aabbSize = { 50, 50, 50 }
745};
◆ Entity_Hammer3BlockWideX
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 100, 50, 50 }
}
Definition at line 747 of file Block.c.
747 {
751 .modelAnimationNodes = 0,
757 .aabbSize = { 100, 50, 50 }
758};
◆ Entity_Hammer3BlockWideZ
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 50, 50, 100 }
}
Definition at line 760 of file Block.c.
760 {
764 .modelAnimationNodes = 0,
770 .aabbSize = { 50, 50, 100 }
771};
◆ Entity_Hammer3BlockTiny
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 25, 25, 25 }
}
Definition at line 773 of file Block.c.
773 {
777 .modelAnimationNodes = 0,
783 .aabbSize = { 25, 25, 25 }
784};
◆ Entity_PushBlock
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 25, 25, 25 }
}
EntityModelScript Entity_PushBlock_RenderScript
Definition at line 786 of file Block.c.
786 {
790 .modelAnimationNodes = 0,
796 .aabbSize = { 25, 25, 25 }
797};
◆ Entity_PowBlock
Initial value:= {
.modelAnimationNodes = 0,
.aabbSize = { 30, 25, 25 },
}
EntityScript Entity_PowBlock_Script
EntityModelScript Entity_PowBlock_RenderScript
Definition at line 799 of file Block.c.
799 {
803 .modelAnimationNodes = 0,
809 .aabbSize = { 30, 25, 25 },
810};