Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
battle_mode.h
Go to the documentation of this file.
1#ifndef FIGHTSTG_H
2#define FIGHTSTG_H
3
4/* FIGHTSTG.PRO: the battle. It loads WFIGHTMN (file 0x1FA) for a normal
5 battle, or WFIGHTTS (file 0x1FB) for the battle test, at STAGE_VRAM.
6 Its declarations are in include/battle/battle_mode/, by module; this header
7 includes them all.
8
9 The Japanese version's battle (FIGHTSTG, WFIGHTMN) is the European one
10 wherever that differs from the USA one (the counterattack, the revival,
11 the camera, the battle menu's fixes), but for the files it loads, which
12 it numbers as the USA disc does: what the comments here say of the
13 European version holds for the Japanese one too. */
14
24
25/* The name of this overlay's copy of a function of src/shared/ */
26#define OVL_NAME(name) FIGHTSTG_##name
27
28/* The sub-overlays (FIGHTSTG_updateRoot) and their entry points */
29#if VERSION_US || VERSION_JP
30#define FILE_WFIGHTMN 0x1FA
31#define FILE_WFIGHTTS 0x1FB
32#elif VERSION_EU
33#define FILE_WFIGHTMN 0x208
34#define FILE_WFIGHTTS 0x209
35#endif
36Task *WFIGHTMN_start(void);
37Task *WFIGHTTS_start(void);
38/* WFIGHTMN's functions FIGHTSTG calls */
40void WFIGHTMN_checkEquip(s32 fighter);
41void WFIGHTMN_chargeGauge(u8 side, s32 damage);
43void WFIGHTMN_countHit(u8 side, s32 damage);
44void WFIGHTMN_endWeakness(u8 side);
45s32 WFIGHTMN_limitDamage(u8 side, s32 damage, s32 hits);
46
47#endif /* FIGHTSTG_H */
FIGHTSTG's actions: techniques, enemy attacks, counterattacks, items, the first technique,...
FIGHTSTG's battle state: the battle table, stats, elements and resistances, the fighters,...
FIGHTSTG's player turn and its menus, the cursor, the HUD, the message box and the partner's info and...
FIGHTSTG's fight stages and their lights (stage.c and lights.c).
FIGHTSTG's battle children (BattleChild): the tasks an action or a menu keeps, by kind.
FIGHTSTG's shared declarations: the headers it builds on, the ids its tasks register with,...
s32 WFIGHTMN_limitDamage(u8 side, s32 damage, s32 hits)
In BATTLE_KIND_ESCAPE and BATTLE_KIND_UNK2, cuts the damage that the partner's hits do so that the en...
Definition techs.c:321
void WFIGHTMN_countHit(u8 side, s32 damage)
In BATTLE_KIND_FINAL_LAST, the partner's third hit that does damage weakens the enemy (FIGHTSTG's FIG...
Definition techs.c:301
Task * WFIGHTTS_start(void)
WFIGHTTS's entry point: creates the battle test, though with 0 bytes for its fields and for its child...
BattleScript * WFIGHTMN_startTech(u8 actor, s32 id)
WFIGHTMN's functions FIGHTSTG calls.
Definition techs.c:150
void WFIGHTMN_chargeGauge(u8 side, s32 damage)
Adds what damage gives to the current partner's gauge (BATTLE_SETUP.gauges), up to 1000.
Definition techs.c:35
Task * WFIGHTMN_start(void)
WFIGHTMN's entry point: creates the battle menu, and zeroes FIGHTSTG_battle's state and BATTLE_RESULT...
Definition menu.c:1455
void WFIGHTMN_checkEquip(s32 fighter)
Queues a recovery (FIGHTSTG_queueRecovery) for party member MEMBER's partner when it has WFIGHTMN_REC...
Definition setup.c:81
void WFIGHTMN_endWeakness(u8 side)
In BATTLE_KIND_FINAL_LAST, anything the partner does but an attack ends the enemy's weakness (FIGHTST...
Definition techs.c:312
s32 WFIGHTMN_setIdleMotion(u8 id, s32 damage)
Sets the idle motion of side id >> 4's fighter: 1 (weak) if damage leaves it with a quarter of its HP...
Definition techs.c:280
FIGHTSTG's cameras: the fighters' cameras, the shot camera, the battle camera and its views,...
signed int s32
Definition common.h:11
unsigned char u8
Definition common.h:8
FIGHTSTG's effects and scripts: sprite effects and their animations, hit effects, battle scripts and ...
FIGHTSTG's models: meshes and their drawing, bones, motions, the models task and its controls,...
A fighter's battle script (FIGHTSTG_updateBattleScript): a list of s16 commands in an archive entry o...
Definition effect.h:144
Any task, seen through its header.
Definition task.h:62