|
Digimon World 3 decomp
The European version, SLES_039.36
|
FIGHTSTG's HUD: the fighters' names, HP and MP bars and the technique gauge. More...
#include "battle/battle_mode.h"Go to the source code of this file.
Functions | |
| void | FIGHTSTG_updateHpTweens (HpDisplay *task, TextWindow **windows) |
| Every frame: the hp tween of a side whose active fighter changed jumps to that fighter's hp; every interval, a side's tween starts easing (30 frames) to its fighter's hp, clamped to 0 and the max hp, when that changed. | |
| void | FIGHTSTG_stepHpTween (HpTween *tween) |
| Eases an HP number towards its target over its duration, along a sine. | |
| void | FIGHTSTG_showFighterNames (HpDisplay *task, TextWindow **windows) |
| Shows the names of both sides' active fighters, when they changed. | |
| void | FIGHTSTG_drawHud (HpDisplay *task, TextWindow **windows) |
| Draws the battle HUD: both HP bars, the technique gauge (full at 1000) and the fighters' icons. | |
| void | FIGHTSTG_updateHud (HpDisplay *task, TextWindow **windows) |
| The battle HUD's task: makes its windows and starts the HP numbers at the fighters' HP, then each frame eases them and draws the HUD (FIGHTSTG_drawHud) | |
| HpDisplay * | FIGHTSTG_createHud (void) |
| Creates the battle HUD (FIGHTSTG_updateHud) | |
Variables | |
| DVECTOR | FIGHTSTG_hpBars [2][4] |
| FIGHTSTG_drawHud's HP bars, one row per side; the European version swaps side 1's ends, so that its bar shrinks toward its right end. | |
| CVECTOR | FIGHTSTG_hpBarColors [4] |
| the bars' colours: above and at a quarter of the HP | |
| DVECTOR | FIGHTSTG_techGauge [4] |
| the technique gauge, and its colours | |
| CVECTOR | FIGHTSTG_techGaugeColors [4] |
| s16 | FIGHTSTG_iconX [2][3] |
| the fighter icons' x, for each side and slot | |
FIGHTSTG's HUD: the fighters' names, HP and MP bars and the technique gauge.
Definition in file hud.c.
| void FIGHTSTG_updateHpTweens | ( | HpDisplay * | task, |
| TextWindow ** | windows | ||
| ) |
Every frame: the hp tween of a side whose active fighter changed jumps to that fighter's hp; every interval, a side's tween starts easing (30 frames) to its fighter's hp, clamped to 0 and the max hp, when that changed.
The match depends on a counter for each loop and the side's row of fighters.
Definition at line 9 of file hud.c.
Referenced by FIGHTSTG_updateHud().
| void FIGHTSTG_stepHpTween | ( | HpTween * | tween | ) |
Eases an HP number towards its target over its duration, along a sine.
Definition at line 49 of file hud.c.
Referenced by FIGHTSTG_updateHud().
| void FIGHTSTG_showFighterNames | ( | HpDisplay * | task, |
| TextWindow ** | windows | ||
| ) |
Shows the names of both sides' active fighters, when they changed.
< the HUD, the menus and the messages
< the HUD, the menus and the messages
< DIGNAM
Definition at line 65 of file hud.c.
Referenced by FIGHTSTG_drawHud(), and FIGHTSTG_updateHud().
| void FIGHTSTG_drawHud | ( | HpDisplay * | task, |
| TextWindow ** | windows | ||
| ) |
Draws the battle HUD: both HP bars, the technique gauge (full at 1000) and the fighters' icons.
< the HUD, the menus and the messages
< the HUD, the menus and the messages
< the HUD, the menus and the messages
< the HUD, the menus and the messages
< the HUD, the menus and the messages
< battle 0x144, the last one: its first enemy
Definition at line 124 of file hud.c.
Referenced by FIGHTSTG_updateHud().
| void FIGHTSTG_updateHud | ( | HpDisplay * | task, |
| TextWindow ** | windows | ||
| ) |
The battle HUD's task: makes its windows and starts the HP numbers at the fighters' HP, then each frame eases them and draws the HUD (FIGHTSTG_drawHud)
< the HUD, the menus and the messages
< MFIGHT: WFIGHTMN's
< the HUD, the menus and the messages
< the HUD, the menus and the messages
Definition at line 226 of file hud.c.
Referenced by FIGHTSTG_createHud().
| HpDisplay * FIGHTSTG_createHud | ( | void | ) |
Creates the battle HUD (FIGHTSTG_updateHud)
Definition at line 273 of file hud.c.
Referenced by FIGHTSTG_updatePlayerTurn(), and runCommandMenu().
| DVECTOR FIGHTSTG_hpBars[2][4] |
FIGHTSTG_drawHud's HP bars, one row per side; the European version swaps side 1's ends, so that its bar shrinks toward its right end.
FIGHTSTG_drawHud's HP bars.
Definition at line 97 of file hud.c.
Referenced by FIGHTSTG_drawHud().
| CVECTOR FIGHTSTG_hpBarColors[4] |
the bars' colours: above and at a quarter of the HP
Definition at line 103 of file hud.c.
Referenced by FIGHTSTG_drawHud().
| DVECTOR FIGHTSTG_techGauge[4] |
the technique gauge, and its colours
and its technique gauge
Definition at line 110 of file hud.c.
Referenced by FIGHTSTG_drawHud().
| CVECTOR FIGHTSTG_techGaugeColors[4] |
Definition at line 113 of file hud.c.
Referenced by FIGHTSTG_drawHud().
| s16 FIGHTSTG_iconX[2][3] |
the fighter icons' x, for each side and slot
Definition at line 117 of file hud.c.
Referenced by FIGHTSTG_drawHud().