Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
battle.c File Reference

The battles that start on the field: the steps to the next one and the battles of the map's areas. More...

#include "field/field_mode.h"
Include dependency graph for battle.c:

Go to the source code of this file.

Functions

void FIELDSTG_rollBattleSteps (void)
 Rolls the steps to the next battle (GAME.battleSteps): under 0x100, or 0x100 to 0x4FF.
 
void FIELDSTG_startAreaBattle (void)
 Starts one of the eight battles of the player's battle area, at random.
 
void FIELDSTG_countBattleSteps (void)
 Counts down to the next battle at each step by the area's rate (FIELDSTG_battleRates), unless the field is busy, and starts it when they run out.
 
void FIELDSTG_startEventBattle (s32 index)
 Starts battle index of the fourth area, the one events start.
 

Detailed Description

The battles that start on the field: the steps to the next one and the battles of the map's areas.

Definition in file battle.c.

Function Documentation

◆ FIELDSTG_rollBattleSteps()

void FIELDSTG_rollBattleSteps ( void  )

Rolls the steps to the next battle (GAME.battleSteps): under 0x100, or 0x100 to 0x4FF.

battle.c

Definition at line 7 of file battle.c.

Referenced by FIELDSTG_countBattleSteps().

Here is the caller graph for this function:

◆ FIELDSTG_startAreaBattle()

void FIELDSTG_startAreaBattle ( void  )

Starts one of the eight battles of the player's battle area, at random.

< every character (FIELDSTG_createActor)

< a cell's value: its battle area (FieldBattles), or 0

Definition at line 18 of file battle.c.

Referenced by FIELDSTG_countBattleSteps().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FIELDSTG_countBattleSteps()

void FIELDSTG_countBattleSteps ( void  )

Counts down to the next battle at each step by the area's rate (FIELDSTG_battleRates), unless the field is busy, and starts it when they run out.

< a cell's value: its battle area (FieldBattles), or 0

< every character (FIELDSTG_createActor)

< a cell's value: its battle area (FieldBattles), or 0

Definition at line 35 of file battle.c.

Here is the call graph for this function:

◆ FIELDSTG_startEventBattle()

void FIELDSTG_startEventBattle ( s32  index)

Starts battle index of the fourth area, the one events start.

Definition at line 61 of file battle.c.

Here is the call graph for this function: