Go to the source code of this file.
◆ METER_FILL_RATE
◆ anonymous enum
| Enumerator | 
|---|
| HIDX_BUTTON |  | 
| HIDX_METER |  | 
| HIDX_RUN_AWAY |  | 
| HIDX_OK |  | 
| HIDX_100_PCT |  | 
Definition at line 9 of file flee.c.
 
 
◆ update()
Definition at line 110 of file flee.c.
  110                     {
  115 
  116    switch (
acs->state) {
 
  122            }
  123 
  128            }
  129 
  134            }
  135 
  140            }
  141 
  143            break;
  146            if (
acs->hudPosX > 50) {
 
  148            }
  151            break;
  153            if (
acs->prepareTime != 0) {
 
  155                break;
  156            }
  157 
  161            acs->stateTimer = 
acs->duration;
 
  162 
  163            
  165            
  168            }
  169 
  170            
  177            }
  178 
  180 
  181            if (
acs->stateTimer != 0) {
 
  183                break;
  184            }
  185 
  189            } else {
  192            }
  193 
  194            acs->stateTimer = 20;
 
  196            break;
  198            if (
acs->stateTimer != 0) {
 
  200                break;
  201            }
  203            break;
  204    }
  205 
  206    
  207    switch (
acs->state) {
 
  212            if (
acs->flee.dir == 0) {
 
  214                if (
acs->escapeThreshold >= 100) {
 
  215                    acs->escapeThreshold = 100;
 
  217                }
  218            } else {
  220                if (
acs->escapeThreshold <= 0) {
 
  221                    acs->escapeThreshold = 0;
 
  223                }
  224            }
  225            break;
  226    }
  227}
BSS s32 PopupMenu_SelectedIndex
BSS ActionCommandStatus gActionCommandStatus
void action_command_free(void)
#define AC_QUALITY_FAILED
#define SCALE_BY_PCT(x, pct)
HudScript HES_MashAButton
@ ACTION_RESULT_METER_NOT_ENOUGH
void hud_element_set_alpha(s32 id, s32 opacity)
void hud_element_set_script(s32 id, HudScript *anim)
void hud_element_set_render_pos(s32 id, s32 x, s32 y)
void hud_element_clear_flags(s32 id, s32 flags)
Turns off the given flags.
@ HUD_ELEMENT_FLAG_DISABLED
BattleStatus gBattleStatus
 
 
◆ draw()
Definition at line 229 of file flee.c.
  229                   {
  234 
  235    
  236    hudX = 60 - ((100 - 
acs->escapeThreshold) * 60 / 100);
 
  237 
  240 
  243    }
  244 
  248 
  251    } 
else if (!
acs->isMeterFilled) {
 
  253    } else {
  255    }
  256 
  260}
void draw_mash_meter_multicolor_with_divisor(s32 posX, s32 posY, s32 fillValue, s32 divisor)
void draw_mash_meter_blink(s32 posX, s32 posY, s32 fillValue)
void hud_element_get_render_pos(s32 id, s32 *x, s32 *y)
void hud_element_draw_clipped(s32 id)
 
 
◆ free()
Definition at line 262 of file flee.c.
  262                   {
  268}
void hud_element_free(s32 id)
 
 
◆ actionCmdTableFlee
Definition at line 30 of file action_cmd.c.
   30{ 130, 120, 110, 100, 90, 80, 70, 60 };