3#include "battle/action_cmd/whirlwind_bubble.png.h"
6#define NAMESPACE action_command_whirlwind
8INCLUDE_IMG(
"battle/action_cmd/whirlwind_1.png", battle_action_cmd_whirlwind_1_png);
9INCLUDE_PAL(
"battle/action_cmd/whirlwind_1.pal", battle_action_cmd_whirlwind_1_pal);
11INCLUDE_IMG(
"battle/action_cmd/whirlwind_2.png", battle_action_cmd_whirlwind_2_png);
12INCLUDE_PAL(
"battle/action_cmd/whirlwind_2.pal", battle_action_cmd_whirlwind_2_pal);
14INCLUDE_IMG(
"battle/action_cmd/whirlwind_3.png", battle_action_cmd_whirlwind_3_png);
15INCLUDE_PAL(
"battle/action_cmd/whirlwind_3.pal", battle_action_cmd_whirlwind_3_pal);
17INCLUDE_IMG(
"battle/action_cmd/whirlwind_4.png", battle_action_cmd_whirlwind_4_png);
18INCLUDE_PAL(
"battle/action_cmd/whirlwind_4.pal", battle_action_cmd_whirlwind_4_pal);
20INCLUDE_IMG(
"battle/action_cmd/whirlwind_5.png", battle_action_cmd_whirlwind_5_png);
21INCLUDE_PAL(
"battle/action_cmd/whirlwind_5.pal", battle_action_cmd_whirlwind_5_pal);
23INCLUDE_IMG(
"battle/action_cmd/whirlwind_6.png", battle_action_cmd_whirlwind_6_png);
24INCLUDE_PAL(
"battle/action_cmd/whirlwind_6.pal", battle_action_cmd_whirlwind_6_pal);
26INCLUDE_IMG(
"battle/action_cmd/whirlwind_7.png", battle_action_cmd_whirlwind_7_png);
27INCLUDE_PAL(
"battle/action_cmd/whirlwind_7.pal", battle_action_cmd_whirlwind_7_pal);
29INCLUDE_IMG(
"battle/action_cmd/whirlwind_bubble.png", battle_action_cmd_whirlwind_bubble_png);
30INCLUDE_PAL(
"battle/action_cmd/whirlwind_bubble.pal", battle_action_cmd_whirlwind_bubble_pal);
47 battle_action_cmd_whirlwind_bubble_png_width, battle_action_cmd_whirlwind_bubble_png_height);
51s32
D_802AA85C_4254CC[] = { 50, 50, 50, 50, 75, 75, 75, 100, 100, 100, 100 };
61s32
D_802AA8B4_425524[] = { 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1 };
65API_CALLABLE(N(
init)) {
82 actionCommandStatus->
state = 0;
91 actionCommandStatus->
hudPosX = -48;
92 actionCommandStatus->
hudPosY = 80;
121API_CALLABLE(N(start)) {
124 Bytecode* args = script->ptrReadPos;
146 actionCommandStatus->
state = 10;
159 switch (actionCommandStatus->
state) {
164 if (actionCommandStatus->
showHud) {
171 if (actionCommandStatus->
showHud) {
177 if (actionCommandStatus->
showHud) {
183 if (actionCommandStatus->
showHud) {
187 actionCommandStatus->
state = 1;
191 actionCommandStatus->
hudPosX += 20;
192 if (actionCommandStatus->
hudPosX > 50) {
193 actionCommandStatus->
hudPosX = 50;
208 actionCommandStatus->
state = 11;
258 actionCommandStatus->
state = 12;
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
void draw_mash_meter_multicolor_with_divisor(s32 posX, s32 posY, s32 fillValue, s32 divisor)
s32 adjust_action_command_difficulty(s32 arg0)
void action_command_init_status(void)
HudScript HES_MashAButton
@ ACTION_COMMAND_MODE_NOT_LEARNED
HudScript * D_802AA888_4254F8[]
s32 actionCmdTableWhirlwind[]
HudScript * D_802AA8A0_425510[]
HudScript HES_WhirlwindBubble
@ ACTION_COMMAND_WHIRLWIND
void btl_set_popup_duration(s32 duration)
s32 evt_get_variable(Evt *script, Bytecode var)
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
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)
HudScript * hud_element_get_script(s32 id)
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.
void hud_element_draw_clipped(s32 id)
void hud_element_free(s32 id)
@ HUD_ELEMENT_FLAG_DISABLED
#define HES_TEMPLATE_CI_CUSTOM_SIZE(name, sizeX, sizeY)
Basic HudScript used for static CI images, setting size with hs_SetCustomSize.
#define HES_TEMPLATE_CI_ENUM_SIZE(name, sizeX, sizeY)
Basic HudScript used for static CI images, setting size with hs_SetTileSize.
#define INCLUDE_PAL(FILENAME, SYMBOLNAME)
#define INCLUDE_IMG(FILENAME, SYMBOLNAME)
s32 * actionCmdDifficultyTable
BattleStatus gBattleStatus
void N init(Npc *bombette)