Go to the source code of this file.
◆ anonymous enum
Enumerator |
---|
SUBSTATE_IDLE_DEFAULT | |
SUBSTATE_IDLE_STRETCH | |
SUBSTATE_DELAY_SLEEP | |
SUBSTATE_IDLE_SLEEP | |
Definition at line 27 of file idle.c.
◆ action_update_idle_peach()
void action_update_idle_peach |
( |
void | | ) |
|
Definition at line 103 of file idle.c.
103 {
106 f32 angle, magnitude;
107
109 playerStatus->
flags &= ~PS_FLAG_ACTION_STATE_CHANGED;
115 playerStatus->
flags &= ~PS_FLAG_AIRBORNE;
116
121 } else {
123 }
124 }
125
131 ) {
133
136 return;
137 }
139 }
140 break;
142
147 }
148 break;
150
155 }
156 break;
158
164 }
165 break;
166 }
167 }
168
171
172 if (magnitude != 0.0f) {
176 }
177}
DisguiseAnims BasicPeachDisguiseAnims[]
@ PS_FLAG_ACTION_STATE_CHANGED
@ PS_FLAG_NO_STATIC_COLLISION
void peach_set_disguise_anim(AnimID)
void player_input_to_move_vector(f32 *angle, f32 *magnitude)
void set_action_state(s32 actionState)
void phys_update_interact_collider(void)
void suggest_player_anim_allow_backward(AnimID anim)
PlayerStatus gPlayerStatus
Referenced by action_update_idle().
◆ action_update_idle()
void action_update_idle |
( |
void | | ) |
|
Definition at line 36 of file idle.c.
36 {
39 s32 firstFrame = FALSE;
40 f32 angle, magnitude;
42
45 return;
46 }
47
49
52 firstFrame = TRUE;
58 playerStatus->
pitch = 0.0f;
59
61 anim = ANIM_MarioW3_8bit_Still;
63 anim = ANIM_Mario1_Idle;
65 anim = ANIM_MarioW1_TakeItem;
66 } else {
67 anim = ANIM_MarioW1_CarryIdle;
68 }
70 }
71
74 return;
75 }
76
79
81 if (magnitude != 0.0f || playerStatus->
targetYaw != angle) {
83 }
84 return;
85 }
86
88 return;
89 }
90
91 if (magnitude == 0.0f) {
93 } else {
96 if (magnitude != 0.0f) {
98 playerStatus->
animFlags &= ~PA_FLAG_80000000;
99 }
100 }
101}
@ PA_FLAG_RAISED_ARMS
Sets action state to ACTION_STATE_RAISE_ARMS on idle.
@ PA_FLAG_USING_PEACH_PHYSICS
@ ACTION_STATE_RAISE_ARMS
b32 check_input_hammer(void)
b32 check_input_jump(void)
void action_update_idle_peach(void)
◆ IdlePeachAnims
Initial value:= {
}
@ PEACH_BAKING_CAKE_MIXED
@ PEACH_BAKING_CAKE_WITH_ICING
@ PEACH_BAKING_COMPLETE_CAKE
@ PEACH_BAKING_STRAWBERRY
@ PEACH_BAKING_CAKE_WITH_BERRIES
@ PEACH_BAKING_CAKE_BATTER
Definition at line 5 of file idle.c.
Referenced by action_update_idle_peach().