Go to the source code of this file.
◆ entity_SpinningFlower_setupGfx()
void entity_SpinningFlower_setupGfx |
( |
s32 | entityIndex | ) |
|
Definition at line 26 of file Plants1.c.
26 {
34
49}
BSS s32 PopupMenu_SelectedIndex
#define ENTITY_ADDR(entity, type, data)
Entity * get_entity_by_index(s32 index)
DisplayContext * gDisplayContext
Referenced by entity_SpinningFlower_init().
◆ func_802BB000_E2D930()
Definition at line 51 of file Plants1.c.
51 {
54
63 }
64 }
65}
BSS Vec3s FlowerGoalPosition
@ PA_FLAG_INTERRUPT_USE_PARTNER
forces actions with bow, parakarry, watt, and lakilester to end (sushie not tested)
@ ENTITY_COLLISION_PLAYER_TOUCH_FLOOR
@ ACTION_STATE_USE_SPINNING_FLOWER
s32 is_picking_up_item(void)
void set_action_state(s32 actionState)
PlayerStatus gPlayerStatus
Referenced by func_802BB0A0_E2D9D0(), and func_802BB228_E2DB58().
◆ func_802BB0A0_E2D9D0()
Definition at line 67 of file Plants1.c.
67 {
70
72 switch (data->
state) {
73 case 0:
79 break;
80 case 1:
86 }
87 }
88 } else {
92 }
93 }
94 break;
95 }
96
98
102 {
104 }
105}
void func_802BB000_E2D930(Entity *entity)
f32 dist2D(f32 ax, f32 ay, f32 bx, f32 by)
void exec_entity_commandlist(Entity *entity)
◆ func_802BB228_E2DB58()
◆ entity_SpinningFlower_init()
void entity_SpinningFlower_init |
( |
Entity * | entity | ) |
|
Definition at line 118 of file Plants1.c.
118 {
120 s32 x, y, z;
121
125 if (!(x | y | z)) {
127 y =
entity->pos.y + 100.0f;
129 }
130
136}
void entity_SpinningFlower_setupGfx(s32 entityIndex)
s32 CreateEntityVarArgBuffer[]
◆ func_802BB314_E2DC44()
Definition at line 138 of file Plants1.c.
138 {
140}
#define sfx_play_sound_at_position
@ SOUND_LOOP_SPINNING_FLOWER
◆ func_802BB34C_E2DC7C()
Definition at line 142 of file Plants1.c.
142 {
145}
@ SOUND_ID_TRIGGER_CHANGE_SOUND
@ SOUND_LRAW_SPINNING_FLOWER
void snd_stop_tracking_env_sound_pos(s32 soundID, s32 keepPlaying)
void sfx_play_sound(s32 soundID)
◆ entity_PinkFlowerLight_setupGfx()
void entity_PinkFlowerLight_setupGfx |
( |
s32 | entityIndex | ) |
|
◆ entity_PinkFlower_idle()
Definition at line 178 of file Plants1.c.
178 {
180
186 if (data->
state == 0) {
190 }
191 }
192 }
193}
AnimScript Entity_PinkFlower_AnimationLightUp
struct PinkFlowerData * pinkFlower
@ PA_FLAG_INTERACT_PROMPT_AVAILABLE
! prompt
@ ENTITY_COLLISION_PLAYER_HAMMER
@ ENTITY_COLLISION_PLAYER_TOUCH_WALL
@ ENTITY_FLAG_SHOWS_INSPECT_PROMPT
void play_model_animation(s32, s16 *)
◆ entity_PinkFlower_init()
Definition at line 195 of file Plants1.c.
195 {
199
207}
EntityBlueprint Entity_PinkFlowerLight
@ RENDER_MODE_SURFACE_XLU_LAYER1
s32 create_entity(EntityBlueprint *bp,...)
ModelAnimator * get_animator_by_index(s32 animModelID)
◆ entity_PinkFlowerLight_init()
void entity_PinkFlowerLight_init |
( |
Entity * | entity | ) |
|
Definition at line 209 of file Plants1.c.
209 {
212}
void entity_PinkFlowerLight_setupGfx(s32 entityIndex)
◆ entity_PinkFlowerLight_idle()
void entity_PinkFlowerLight_idle |
( |
Entity * | entity | ) |
|
Definition at line 214 of file Plants1.c.
214 {
216
217 switch (data->
timer) {
218 case 0:
219 if (data->
state != 0) {
225 }
226 break;
227 case 1:
229 if (
entity->rot.z >= 8.0f) {
231 }
232
236 }
237
239 if (
entity->scale.x <= 0.1) {
242 }
245 break;
246 }
247
250}
◆ func_802BB8D4_E2E204()
◆ func_802BB98C_E2E2BC()
◆ entity_CymbalPlant_idle()
Definition at line 266 of file Plants1.c.
266 {
272
273 switch (data->
state) {
274 case 0:
278 }
289 } else {
291 }
292 break;
293 case 1:
295 if (--data->
timer == 0) {
303 }
305 break;
306 case 2:
307 if (--data->
timer == 0) {
311 }
312 break;
313 case 3:
315 break;
316 case 4:
318 targetYaw = 270.0f;
320 targetYaw = 90.0f;
321 }
325 break;
326 case 5:
327 if (--data->
timer == 0) {
332 }
333 break;
334 case 6:
339 }
340 break;
341 }
342}
void func_802BB8D4_E2E204(Entity *entity)
AnimScript Entity_CymbalPlant_AnimationGrab
void func_802BB98C_E2E2BC(Entity *entity)
@ PS_FLAG_ROTATION_LOCKED
@ IMGFX_ANIM_CYMBAL_CRUSH
@ SOUND_PLANTS_CYMBAL_CRASH
void start_rumble(s32, s32)
s32 disable_player_input(void)
s32 enable_player_input(void)
s32 phys_adjust_cam_on_landing(void)
void enable_partner_ai(void)
void set_player_imgfx_all(s32 animID, ImgFXType imgfxType, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6)
void set_player_imgfx_comp(s32 spriteIdx, s32 compIdx, ImgFXType imgfx, s32 imgfxArg1, s32 imgfxArg2, s32 imgfxArg3, s32 imgfxArg4, s32 flags)
PartnerStatus gPartnerStatus
◆ Entity_RenderNone
◆ Entity_CymbalPlant_AnimationIdle
Definition at line 347 of file CymbalPlant_anim.c.
347 {
385};
#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_CymbalPlant_AnimationGrab
◆ Entity_PinkFlower_AnimationLightUp
◆ Entity_CymbalPlant_Mesh
Definition at line 87 of file CymbalPlant_anim.c.
87 {
100};
StaticAnimatorNode Entity_CymbalPlant_Node2
StaticAnimatorNode Entity_CymbalPlant_Node4
StaticAnimatorNode Entity_CymbalPlant_NodeParent
StaticAnimatorNode Entity_CymbalPlant_Node8
StaticAnimatorNode Entity_CymbalPlant_Node10
StaticAnimatorNode Entity_CymbalPlant_Node7
StaticAnimatorNode Entity_CymbalPlant_Node9
StaticAnimatorNode Entity_CymbalPlant_Node6
StaticAnimatorNode Entity_CymbalPlant_Node1
StaticAnimatorNode Entity_CymbalPlant_Node5
StaticAnimatorNode Entity_CymbalPlant_Node3
◆ Entity_PinkFlowerLight
Initial value:= {
.modelAnimationNodes = 0,
.fpHandleCollision =
NULL,
.aabbSize = { 44, 100, 25 }
}
void entity_PinkFlowerLight_init(Entity *entity)
EntityModelScript Entity_PinkFlowerLight_RenderScript
EntityScript Entity_PinkFlowerLight_Script
@ ENTITY_TYPE_PINK_FLOWER
@ ENTITY_FLAG_DISABLE_COLLISION
Definition at line 405 of file Plants1.c.
405 {
409 .modelAnimationNodes = 0,
412 .fpHandleCollision =
NULL,
415 .aabbSize = { 44, 100, 25 }
416};
Referenced by entity_PinkFlower_init().
◆ Entity_PinkFlower_Mesh
Definition at line 41 of file PinkFlower_anim.c.
41 {
48};
StaticAnimatorNode Entity_PinkFlower_Node4
StaticAnimatorNode Entity_PinkFlower_Node3
StaticAnimatorNode Entity_PinkFlower_Node2
StaticAnimatorNode Entity_PinkFlower_Node1
StaticAnimatorNode Entity_PinkFlower_Node5
◆ Entity_PinkFlower_AnimationIdle
◆ D_0A001098_E9C598
◆ D_0A0013B8_E9C8B8
◆ D_0A000B70_E9D470
◆ D_0A000D18_E9D618
◆ Entity_SpinningFlower_Render
Gfx Entity_SpinningFlower_Render[] |
|
extern |
◆ D_802BCE20
◆ FlowerGoalPosition
◆ Entity_SpinningFlower_Script
Initial value:= {
}
void func_802BB228_E2DB58(Entity *entity)
void func_802BB0A0_E2D9D0(Entity *entity)
void func_802BB314_E2DC44(Entity *entity)
void func_802BB34C_E2DC7C(Entity *entity)
#define es_SetCallback(func, time)
Definition at line 344 of file Plants1.c.
◆ Entity_PinkFlower_Script
Initial value:= {
}
void entity_PinkFlower_idle(Entity *entity)
#define es_SetFlags(flags)
#define es_PlaySound(soundId)
Definition at line 353 of file Plants1.c.
◆ Entity_PinkFlowerLight_Script
Initial value:= {
}
void entity_PinkFlowerLight_idle(Entity *entity)
Definition at line 362 of file Plants1.c.
◆ Entity_CymbalPlant_Update
Initial value:= {
}
void entity_CymbalPlant_idle(Entity *entity)
Definition at line 368 of file Plants1.c.
◆ Entity_PinkFlowerLight_RenderScript
◆ Entity_SpinningFlower_RenderScript
◆ Entity_CymbalPlant_dma
◆ Entity_PinkFlower_dma
◆ Entity_CymbalPlant
Initial value:= {
.fpHandleCollision =
NULL,
.aabbSize = { 103, 30, 24 }
}
AnimScript Entity_CymbalPlant_AnimationIdle
EntityScript Entity_CymbalPlant_Update
DmaEntry Entity_CymbalPlant_dma[]
StaticAnimatorNode * Entity_CymbalPlant_Mesh[]
@ ENTITY_TYPE_CYMBAL_PLANT
@ ENTITY_FLAG_HAS_ANIMATED_MODEL
@ ENTITY_FLAG_FIXED_SHADOW_SIZE
@ ENTITY_FLAG_CIRCULAR_SHADOW
Definition at line 379 of file Plants1.c.
379 {
386 .fpHandleCollision =
NULL,
389 .aabbSize = { 103, 30, 24 }
390};
◆ Entity_PinkFlower
Initial value:= {
.fpHandleCollision =
NULL,
.aabbSize = { 44, 100, 25 }
}
StaticAnimatorNode * Entity_PinkFlower_Mesh[]
DmaEntry Entity_PinkFlower_dma[]
EntityScript Entity_PinkFlower_Script
void entity_PinkFlower_init(Entity *entity)
AnimScript Entity_PinkFlower_AnimationIdle
Definition at line 392 of file Plants1.c.
392 {
399 .fpHandleCollision =
NULL,
402 .aabbSize = { 44, 100, 25 }
403};
◆ Entity_SpinningFlower
Initial value:= {
.flags = 0,
.modelAnimationNodes = 0,
.fpHandleCollision =
NULL,
.aabbSize = { 45, 22, 42 }
}
EntityScript Entity_SpinningFlower_Script
void entity_SpinningFlower_init(Entity *entity)
EntityModelScript Entity_SpinningFlower_RenderScript
@ ENTITY_TYPE_SPINNING_FLOWER
Definition at line 418 of file Plants1.c.
418 {
419 .flags = 0,
422 .modelAnimationNodes = 0,
425 .fpHandleCollision =
NULL,
428 .aabbSize = { 45, 22, 42 }
429};