4#define NAMESPACE action_command_air_raid
13API_CALLABLE(N(
init)) {
18 battleStatus->
unk_82 = 100;
30 actionCommandStatus->
showHud = TRUE;
32 actionCommandStatus->
state = 0;
38 actionCommandStatus->
hudPosX = -48;
39 actionCommandStatus->
hudPosY = 80;
71 switch (actionCommandStatus->
state) {
77 if (actionCommandStatus->
showHud) {
83 if (actionCommandStatus->
showHud) {
87 actionCommandStatus->
state = 1;
97 actionCommandStatus->
hudPosX += 20;
98 if (actionCommandStatus->
hudPosX > 50) {
99 actionCommandStatus->
hudPosX = 50;
116 actionCommandStatus->
unk_5C = 0;
119 actionCommandStatus->
state = 11;
133 actionCommandStatus->
unk_5C = 1;
137 if (actionCommandStatus->
unk_5C != 0) {
139 actionCommandStatus->
unk_5C = 0;
217 actionCommandStatus->
state = 12;
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
void action_command_init_status(void)
HudScript HES_StickNeutral
HudScript HES_StickMashLeft
@ ACTION_COMMAND_MODE_NOT_LEARNED
s32 actionCmdTableAirRaid[]
struct ActorBlueprint * actorBlueprint
@ ACTION_COMMAND_AIR_RAID
void btl_set_popup_duration(s32 duration)
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_set_render_depth(s32 id, s32 z)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
s32 hud_element_create(HudScript *anim)
Creates a new HUD element and returns its ID.
void hud_element_set_flags(s32 id, s32 flags)
Turns on the given flags.
void hud_element_clear_flags(s32 id, s32 flags)
Turns off the given flags.
@ HUD_ELEMENT_FLAG_DISABLED
void sfx_stop_sound(s32 soundID)
void sfx_adjust_env_sound_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
void sfx_play_sound_with_params(s32 soundID, u8 volume, u8 pan, s16 pitchShift)
struct Actor * partnerActor
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus
void N init(Npc *bombette)