Go to the source code of this file.
◆ entity_BellbellPlant_idle()
void entity_BellbellPlant_idle |
( |
Entity * | entity | ) |
|
Definition at line 41 of file Plants2.c.
41 {
46 }
47}
AnimScript Entity_BellbellPlant_AnimationUse
@ PA_FLAG_INTERACT_PROMPT_AVAILABLE
! prompt
@ ENTITY_COLLISION_PLAYER_HAMMER
@ ENTITY_COLLISION_PLAYER_TOUCH_WALL
void play_model_animation(s32, s16 *)
void exec_entity_commandlist(Entity *entity)
PlayerStatus gPlayerStatus
◆ entity_TrumpetPlant_idle()
void entity_TrumpetPlant_idle |
( |
Entity * | entity | ) |
|
Definition at line 49 of file Plants2.c.
49 {
54 }
55}
AnimScript Entity_TrumpetPlant_AnimationUse
◆ entity_TrumpetPlant_create_effect()
void entity_TrumpetPlant_create_effect |
( |
Entity * | entity | ) |
|
◆ entity_TrumpetPlant_spawn_coin()
void entity_TrumpetPlant_spawn_coin |
( |
Entity * | entity | ) |
|
Definition at line 66 of file Plants2.c.
66 {
68
71 f32 xOffset, zOffset, angle;
72
74 xOffset = -26.0 *
cos_rad(angle);
76
78 f32 facingAngle = entity->
rot.
y - 110.0f + (data->
numCoins % 3) * 30;
81 entity->
pos.
x + xOffset,
82 entity->
pos.
y + 62.0f,
83 entity->
pos.
z + zOffset,
85 facingAngle, 0);
86 }
87 }
88}
void entity_TrumpetPlant_create_effect(Entity *entity)
struct TrumpetPlantData * trumpetPlant
@ ITEM_SPAWN_MODE_TOSS_SPAWN_ALWAYS
s32 make_item_entity(s32 itemID, f32 x, f32 y, f32 z, s32 itemSpawnMode, s32 pickupDelay, s32 angle, s32 pickupVar)
◆ entity_Munchlesia_init()
void entity_Munchlesia_init |
( |
Entity * | entity | ) |
|
Definition at line 90 of file Plants2.c.
90 {
93}
@ ITEM_SPAWN_MODE_FIXED_SPAWN_ALWAYS_NEVER_VANISH
s32 make_item_entity_nodelay(s32 itemID, f32 x, f32 y, f32 z, s32 itemSpawnMode, s32 pickupVar)
◆ func_802BC050_E2E980()
void func_802BC050_E2E980 |
( |
Entity * | entity | ) |
|
Definition at line 95 of file Plants2.c.
95 {
97
105 }
106}
struct MunchlesiaData * munchlesia
@ PA_FLAG_INTERRUPT_USE_PARTNER
forces actions with bow, parakarry, watt, and lakilester to end (sushie not tested)
@ ENTITY_COLLISION_PLAYER_TOUCH_FLOOR
Entity * get_entity_by_index(s32 index)
◆ func_802BC0B8_E2E9E8()
void func_802BC0B8_E2E9E8 |
( |
Entity * | entity | ) |
|
Definition at line 108 of file Plants2.c.
108 {
112}
AnimScript Entity_MunchlesiaReset_AnimationReset
s32 disable_player_input(void)
void disable_player_shadow(void)
◆ func_802BC0F0_E2EA20()
void func_802BC0F0_E2EA20 |
( |
Entity * | entity | ) |
|
Definition at line 114 of file Plants2.c.
114 {
118}
f32 dist2D(f32 ax, f32 ay, f32 bx, f32 by)
◆ func_802BC17C_E2EAAC()
void func_802BC17C_E2EAAC |
( |
Entity * | entity | ) |
|
Definition at line 120 of file Plants2.c.
120 {
122
127}
void add_vec2D_polar(f32 *x, f32 *y, f32 r, f32 theta)
◆ entity_Munchlesia_create_child()
◆ func_802BC220_E2EB50()
void func_802BC220_E2EB50 |
( |
Entity * | entity | ) |
|
Definition at line 133 of file Plants2.c.
133 {
136}
EntityBlueprint Entity_MunchlesiaReset
s32 entity_Munchlesia_create_child(Entity *entity, EntityBlueprint *EntityBlueprint)
◆ func_802BC250_E2EB80()
void func_802BC250_E2EB80 |
( |
Entity * | entity | ) |
|
Definition at line 138 of file Plants2.c.
138 {
140}
EntityBlueprint Entity_MunchlesiaGrab
◆ func_802BC274_E2EBA4()
void func_802BC274_E2EBA4 |
( |
Entity * | entity | ) |
|
Definition at line 142 of file Plants2.c.
142 {
146}
EntityBlueprint Entity_MunchlesiaEnvelop
@ ACTION_STATE_USE_SPRING
void set_action_state(s32 actionState)
void subtract_hp(s32 amt)
◆ func_802BC2B4_E2EBE4()
void func_802BC2B4_E2EBE4 |
( |
Entity * | entity | ) |
|
Definition at line 148 of file Plants2.c.
148 {
154}
EntityBlueprint Entity_MunchlesiaBeginChew
void suggest_player_anim_always_forward(AnimID anim)
◆ func_802BC308_E2EC38()
void func_802BC308_E2EC38 |
( |
Entity * | entity | ) |
|
Definition at line 156 of file Plants2.c.
156 {
158}
EntityBlueprint Entity_MunchlesiaChewing
◆ func_802BC32C_E2EC5C()
void func_802BC32C_E2EC5C |
( |
Entity * | entity | ) |
|
Definition at line 160 of file Plants2.c.
160 {
163}
EntityBlueprint Entity_MunchlesiaSpitOut
void enable_partner_ai(void)
◆ entity_Munchlesia_create_child_reset1()
void entity_Munchlesia_create_child_reset1 |
( |
Entity * | entity | ) |
|
Definition at line 165 of file Plants2.c.
165 {
167}
EntityBlueprint Entity_MunchlesiaReset1
◆ entity_Munchlesia_create_child_reset2()
void entity_Munchlesia_create_child_reset2 |
( |
Entity * | entity | ) |
|
Definition at line 169 of file Plants2.c.
169 {
171}
EntityBlueprint Entity_MunchlesiaReset2
◆ func_802BC3A0_E2ECD0()
void func_802BC3A0_E2ECD0 |
( |
void | | ) |
|
Definition at line 173 of file Plants2.c.
173 {
177}
@ ACTION_STATE_USE_MUNCHLESIA
Set by the jan_09 squishy flower entity; throws the player in the air.
s32 enable_player_input(void)
void enable_player_shadow(void)
◆ entity_MunchlesiaChewing_init()
void entity_MunchlesiaChewing_init |
( |
Entity * | entity | ) |
|
◆ func_802BC3E4_E2ED14()
void func_802BC3E4_E2ED14 |
( |
Entity * | entity | ) |
|
Definition at line 185 of file Plants2.c.
185 {
188
190 if (data->
unk_10 > 360.0f) {
192 }
193 if (data->
unk_10 == 96.0f) {
195 }
196}
void sfx_play_sound(s32 soundID)
◆ Entity_MunchlesiaReset
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
StaticAnimatorNode * Entity_MunchlesiaReset_Mesh[]
DmaEntry Entity_MunchlesiaReset_dma[]
AnimScript Entity_MunchlesiaReset_AnimationIdle
EntityScript Entity_MunchlesiaReset_Script
@ ENTITY_TYPE_RESET_MUNCHLESIA
@ ENTITY_FLAG_HAS_ANIMATED_MODEL
@ ENTITY_FLAG_DISABLE_COLLISION
Definition at line 370 of file Plants2.c.
370 {
375 .fpInit = NULL,
377 .fpHandleCollision = NULL,
380 .aabbSize = { 40, 20, 40 }
381};
Referenced by func_802BC220_E2EB50().
◆ Entity_MunchlesiaGrab
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
AnimScript Entity_MunchlesiaGrab_Animation
DmaEntry Entity_MunchlesiaGrab_dma[]
StaticAnimatorNode * Entity_MunchlesiaGrab_Mesh[]
EntityScript Entity_MunchlesiaGrab_Script
@ ENTITY_TYPE_MUNCHLESIA_GRAB
Definition at line 383 of file Plants2.c.
383 {
388 .fpInit = NULL,
390 .fpHandleCollision = NULL,
393 .aabbSize = { 40, 20, 40 }
394};
Referenced by func_802BC250_E2EB80().
◆ Entity_MunchlesiaEnvelop
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
StaticAnimatorNode * Entity_MunchlesiaEnvelop_Mesh[]
EntityScript Entity_MunchlesiaEnvelop_Script
DmaEntry Entity_MunchlesiaEnvelop_dma[]
AnimScript Entity_MunchlesiaEnvelop_Animation
@ ENTITY_TYPE_MUNCHLESIA_ENVELOP
Definition at line 396 of file Plants2.c.
396 {
401 .fpInit = NULL,
403 .fpHandleCollision = NULL,
406 .aabbSize = { 40, 20, 40 }
407};
Referenced by func_802BC274_E2EBA4().
◆ Entity_MunchlesiaBeginChew
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
DmaEntry Entity_MunchlesiaBeginChew_dma[]
AnimScript Entity_MunchlesiaBeginChew_Animation
EntityScript Entity_MunchlesiaBeginChew_Script
StaticAnimatorNode * Entity_MunchlesiaBeginChew_Mesh[]
@ ENTITY_TYPE_MUNCHLESIA_BEGIN_CHEW
Definition at line 409 of file Plants2.c.
409 {
414 .fpInit = NULL,
416 .fpHandleCollision = NULL,
419 .aabbSize = { 40, 20, 40 }
420};
Referenced by func_802BC2B4_E2EBE4().
◆ Entity_MunchlesiaChewing
Initial value:= {
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
AnimScript Entity_MunchlesiaChewing_Animation
DmaEntry Entity_MunchlesiaChewing_dma[]
EntityScript Entity_MunchlesiaChewing_Script
void entity_MunchlesiaChewing_init(Entity *entity)
StaticAnimatorNode * Entity_MunchlesiaChewing_Mesh[]
@ ENTITY_TYPE_MUNCHLESIA_CHEWING
Definition at line 422 of file Plants2.c.
422 {
429 .fpHandleCollision = NULL,
432 .aabbSize = { 40, 20, 40 }
433};
Referenced by func_802BC308_E2EC38().
◆ Entity_MunchlesiaSpitOut
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
EntityScript Entity_MunchlesiaSpitOut_Script
DmaEntry Entity_MunchlesiaSpitOut_dma[]
AnimScript Entity_MunchlesiaSpitOut_Animation
StaticAnimatorNode * Entity_MunchlesiaSpitOut_Mesh[]
@ ENTITY_TYPE_MUNCHLESIA_SPIT_OUT
Definition at line 435 of file Plants2.c.
435 {
440 .fpInit = NULL,
442 .fpHandleCollision = NULL,
445 .aabbSize = { 40, 20, 40 }
446};
Referenced by func_802BC32C_E2EC5C().
◆ Entity_MunchlesiaReset1
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
EntityScript Entity_MunchlesiaReset1_Script
StaticAnimatorNode * Entity_MunchlesiaReset1_Mesh[]
AnimScript Entity_MunchlesiaReset1_Animation
DmaEntry Entity_MunchlesiaReset1_dma[]
@ ENTITY_TYPE_MUNCHLESIA_RESET1
Definition at line 448 of file Plants2.c.
448 {
453 .fpInit = NULL,
455 .fpHandleCollision = NULL,
458 .aabbSize = { 40, 20, 40 }
459};
Referenced by entity_Munchlesia_create_child_reset1().
◆ Entity_MunchlesiaReset2
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 40, 20, 40 }
}
EntityScript Entity_MunchlesiaReset2_Script
@ ENTITY_TYPE_MUNCHLESIA_RESET2
Definition at line 461 of file Plants2.c.
461 {
466 .fpInit = NULL,
468 .fpHandleCollision = NULL,
471 .aabbSize = { 40, 20, 40 }
472};
Referenced by entity_Munchlesia_create_child_reset2().
◆ Entity_RenderNone_Script
Definition at line 73 of file Shadow.c.
73 {
77};
#define ems_Draw(dlist, holdTime)
◆ Entity_BellbellPlant_AnimationIdle
Definition at line 449 of file BellbellPlant_anim.c.
449 {
469};
#define as_DisableMirroring
#define as_SetPos(node, x, y, z)
#define as_SetRotation(node, x, y, z)
#define as_SetScale(node, x, y, z)
◆ Entity_BellbellPlant_AnimationUse
◆ Entity_BellbellPlant_Mesh
Definition at line 47 of file BellbellPlant_anim.c.
47 {
54};
StaticAnimatorNode Entity_BellbellPlant_Node1
StaticAnimatorNode Entity_BellbellPlant_Node2
StaticAnimatorNode Entity_BellbellPlant_Node5
StaticAnimatorNode Entity_BellbellPlant_Node4
StaticAnimatorNode Entity_BellbellPlant_Node3
◆ Entity_TrumpetPlant_AnimationIdle
◆ Entity_TrumpetPlant_AnimationUse
◆ Entity_TrumpetPlant_Mesh
Definition at line 21 of file TrumpetPlant_anim.c.
21 {
25};
StaticAnimatorNode Entity_TrumpetPlant_Node1
StaticAnimatorNode Entity_TrumpetPlant_Node2
◆ Entity_MunchlesiaReset_AnimationIdle
◆ Entity_MunchlesiaReset_AnimationReset
◆ Entity_MunchlesiaReset_Mesh
Definition at line 224 of file MunchlesiaReset_anim.c.
224 {
234};
StaticAnimatorNode Entity_MunchlesiaReset_Node6
StaticAnimatorNode Entity_MunchlesiaReset_Node5
StaticAnimatorNode Entity_MunchlesiaReset_Node8
StaticAnimatorNode Entity_MunchlesiaReset_Node1
StaticAnimatorNode Entity_MunchlesiaReset_Node4
StaticAnimatorNode Entity_MunchlesiaReset_Node2
StaticAnimatorNode Entity_MunchlesiaReset_Node7
StaticAnimatorNode Entity_MunchlesiaReset_Node3
◆ Entity_MunchlesiaGrab_Animation
◆ Entity_MunchlesiaGrab_Mesh
Definition at line 210 of file MunchlesiaGrab_anim.c.
210 {
220};
StaticAnimatorNode Entity_MunchlesiaGrab_Node5
StaticAnimatorNode Entity_MunchlesiaGrab_Node8
StaticAnimatorNode Entity_MunchlesiaGrab_Node7
StaticAnimatorNode Entity_MunchlesiaGrab_Node3
StaticAnimatorNode Entity_MunchlesiaGrab_Node4
StaticAnimatorNode Entity_MunchlesiaGrab_Node1
StaticAnimatorNode Entity_MunchlesiaGrab_Node2
StaticAnimatorNode Entity_MunchlesiaGrab_Node6
◆ Entity_MunchlesiaEnvelop_Animation
◆ Entity_MunchlesiaEnvelop_Mesh
Definition at line 205 of file MunchlesiaEnvelop_anim.c.
205 {
215};
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node8
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node4
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node6
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node2
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node3
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node5
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node7
StaticAnimatorNode Entity_MunchlesiaEnvelop_Node1
◆ Entity_MunchlesiaBeginChew_Animation
◆ Entity_MunchlesiaBeginChew_Mesh
Definition at line 216 of file MunchlesiaBeginChew_anim.c.
216 {
227};
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node1
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node4
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node9
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node5
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node6
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node2
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node8
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node3
StaticAnimatorNode Entity_MunchlesiaBeginChew_Node7
◆ Entity_MunchlesiaChewing_Animation
◆ Entity_MunchlesiaChewing_Mesh
◆ Entity_MunchlesiaSpitOut_Animation
◆ Entity_MunchlesiaSpitOut_Mesh
Definition at line 216 of file MunchlesiaSpitOut_anim.c.
216 {
227};
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node7
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node1
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node8
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node9
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node4
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node5
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node3
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node6
StaticAnimatorNode Entity_MunchlesiaSpitOut_Node2
◆ Entity_MunchlesiaReset1_Animation
◆ Entity_MunchlesiaReset1_Mesh
Definition at line 216 of file MunchlesiaReset1_anim.c.
216 {
227};
StaticAnimatorNode Entity_MunchlesiaReset1_Node2
StaticAnimatorNode Entity_MunchlesiaReset1_Node3
StaticAnimatorNode Entity_MunchlesiaReset1_Node9
StaticAnimatorNode Entity_MunchlesiaReset1_Node8
StaticAnimatorNode Entity_MunchlesiaReset1_Node1
StaticAnimatorNode Entity_MunchlesiaReset1_Node6
StaticAnimatorNode Entity_MunchlesiaReset1_Node4
StaticAnimatorNode Entity_MunchlesiaReset1_Node7
StaticAnimatorNode Entity_MunchlesiaReset1_Node5
◆ Entity_BellbellPlant_Script
Initial value:= {
}
void entity_BellbellPlant_idle(Entity *entity)
#define es_SetCallback(func, time)
#define es_SetFlags(flags)
#define es_PlaySound(soundId)
#define es_ClearFlags(flags)
@ ENTITY_FLAG_SHOWS_INSPECT_PROMPT
Definition at line 198 of file Plants2.c.
◆ Entity_TrumpetPlant_Script
Initial value:= {
}
void entity_TrumpetPlant_idle(Entity *entity)
void entity_TrumpetPlant_spawn_coin(Entity *entity)
Definition at line 208 of file Plants2.c.
◆ Entity_Munchlesia_Script
Initial value:= {
}
void func_802BC050_E2E980(Entity *entity)
void func_802BC220_E2EB50(Entity *entity)
#define es_Label(labelId)
Definition at line 230 of file Plants2.c.
◆ Entity_MunchlesiaReset_Script
Initial value:= {
}
void func_802BC250_E2EB80(Entity *entity)
void func_802BC0B8_E2E9E8(Entity *entity)
@ SOUND_MUNCHLESIA_SUCTION
@ ENTITY_FLAG_PENDING_INSTANCE_DELETE
Definition at line 239 of file Plants2.c.
◆ Entity_MunchlesiaGrab_Script
Initial value:= {
}
void func_802BC274_E2EBA4(Entity *entity)
void func_802BC0F0_E2EA20(Entity *entity)
void func_802BC17C_E2EAAC(Entity *entity)
Definition at line 251 of file Plants2.c.
◆ Entity_MunchlesiaEnvelop_Script
Initial value:= {
}
void func_802BC2B4_E2EBE4(Entity *entity)
Definition at line 262 of file Plants2.c.
◆ Entity_MunchlesiaBeginChew_Script
Initial value:= {
}
void func_802BC308_E2EC38(Entity *entity)
Definition at line 271 of file Plants2.c.
◆ Entity_MunchlesiaChewing_Script
Initial value:= {
}
void func_802BC32C_E2EC5C(Entity *entity)
void func_802BC3E4_E2ED14(Entity *entity)
Definition at line 280 of file Plants2.c.
◆ Entity_MunchlesiaSpitOut_Script
Initial value:= {
}
void entity_Munchlesia_create_child_reset1(Entity *entity)
void func_802BC3A0_E2ECD0(void)
Definition at line 291 of file Plants2.c.
◆ Entity_MunchlesiaReset1_Script
Initial value:= {
}
void entity_Munchlesia_create_child_reset2(Entity *entity)
Definition at line 303 of file Plants2.c.
◆ Entity_MunchlesiaReset2_Script
◆ Entity_MunchlesiaReset_dma
◆ Entity_MunchlesiaGrab_dma
◆ Entity_MunchlesiaEnvelop_dma
◆ Entity_MunchlesiaBeginChew_dma
◆ Entity_MunchlesiaChewing_dma
◆ Entity_MunchlesiaSpitOut_dma
◆ Entity_MunchlesiaReset1_dma
◆ Entity_BellbellPlant_dma
◆ Entity_TrumpetPlant_dma
◆ Entity_BellbellPlant
Initial value:= {
.typeDataSize = 0,
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 30, 40, 30 }
}
EntityScript Entity_BellbellPlant_Script
AnimScript Entity_BellbellPlant_AnimationIdle
DmaEntry Entity_BellbellPlant_dma[]
StaticAnimatorNode * Entity_BellbellPlant_Mesh[]
@ ENTITY_TYPE_BELLBELL_PLANT
@ ENTITY_FLAG_FIXED_SHADOW_SIZE
@ ENTITY_FLAG_CIRCULAR_SHADOW
Definition at line 331 of file Plants2.c.
331 {
333 .typeDataSize = 0,
336 .fpInit = NULL,
338 .fpHandleCollision = NULL,
341 .aabbSize = { 30, 40, 30 }
342};
◆ Entity_TrumpetPlant
Initial value:= {
.fpInit = NULL,
.fpHandleCollision = NULL,
.aabbSize = { 30, 40, 30 }
}
AnimScript Entity_TrumpetPlant_AnimationIdle
StaticAnimatorNode * Entity_TrumpetPlant_Mesh[]
EntityScript Entity_TrumpetPlant_Script
DmaEntry Entity_TrumpetPlant_dma[]
@ ENTITY_TYPE_TRUMPET_PLANT
Definition at line 344 of file Plants2.c.
344 {
349 .fpInit = NULL,
351 .fpHandleCollision = NULL,
354 .aabbSize = { 30, 40, 30 }
355};
◆ Entity_Munchlesia
Initial value:= {
.modelAnimationNodes = 0,
.fpHandleCollision = NULL,
{ .dmaList = NULL },
.aabbSize = { 45, 20, 45 }
}
EntityModelScript Entity_RenderNone_Script
EntityScript Entity_Munchlesia_Script
void entity_Munchlesia_init(Entity *entity)
Definition at line 357 of file Plants2.c.
357 {
361 .modelAnimationNodes = 0,
364 .fpHandleCollision = NULL,
365 { .dmaList = NULL },
367 .aabbSize = { 45, 20, 45 }
368};