13 switch (task->
state) {
18 task->
lines[0] = 0x10;
27 if (children[0].task ==
NULL) {
33 if (children[0].task ==
NULL) {
37 task->
lines[1] = fighter->
hp - 1;
44 if (children[0].task ==
NULL) {
Battle FIGHTSTG_battle
the battle: its fighters, speed and drawing functions
void FIGHTSTG_queueLastEnemy(void)
Queues the coming in of the last battle's third enemy, first.
EventQueue FIGHTSTG_events
the battle's events and their functions
void FIGHTSTG_queueEnemyTurn(s32 delay)
Queues the enemy's turn (event 3) in delay.
FIGHTSTG.PRO: the battle.
BattleTableEntry *(* FIGHTSTG_battleTableFunc)(s32 id)
how the fight stage and WFIGHTMN read the battle table
#define TASK_INIT
Tasks: every game object is a task, a heap block that starts with this header and is updated once per...
BattleMessageBox * FIGHTSTG_createMessage(void)
Creates a battle message box (FIGHTSTG_updateMessage)
OneHpTurn * FIGHTSTG_startOneHpTurn(void)
Starts BATTLE_KIND_FINAL_SECOND's enemy turn.
void FIGHTSTG_updateOneHpTurn(OneHpTurn *task, BattleChild *children)
BATTLE_KIND_FINAL_SECOND's enemy turn: the enemy's message and its battle table entry's second techni...
One of the battle's fighters, three on each side (WFIGHTMN's BattleUnit): a partner's HP and MP go ba...
s16 id
the Digimon (DIGIMON_DATA)
void(* show)()
FIGHTSTG_showMessage: (task, type, data)
s32 active[2]
each side's fighter
BattleFighter fighters[2][3]
s16 techs[3]
its first, then those of FIGHTSTG_getEnemyAction's kinds 2 and 3
s32(* getDelay)(u8 side, s32 kind)
FIGHTSTG_getEventDelay: when an event of side's runs.
FIGHTSTG_startOneHpTurn's task, BATTLE_KIND_FINAL_SECOND's enemy turn: the enemy's second technique (...
void(* nextState)(struct OneHpTurn *task)
s32 lines[8]
FIGHTSTG_updateMessage's, 0 ends them.
Any task, seen through its header.
void * createTask(void(*update)(), s32 size, s32 childrenSize)
createTaskWithId for a task nothing needs to find
BattleScript * WFIGHTMN_startTech(u8 actor, s32 id)
Starts the effect of actor's move id (FIGHTSTG's FIGHTSTG_createBattleScript): its kind and motions f...
A turn's or a counterattack's one child, and what WFIGHTMN's battle menu waits for (NULL when it is d...
BattleMessageBox * message
FIGHTSTG_createMessage.
BattleScript * script
a technique's (FIGHTSTG_createBattleScript)