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

The field's own stage: the ends of its events and its setup. More...

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

Go to the source code of this file.

Macros

#define END_CHOICE(n, a, b)
 The ends of the events of question n's answers (FIELDSTG_events): both set event flag 0x400 + n, and the first answer's also applies a, the auction's price (SPECIAL_LOSE_*_BIT), and b.
 
#define FIELD_FILE   0x1AD
 

Functions

void FIELDSTG_endChoice0Answer0 (void)
 
void FIELDSTG_endChoice0Answer1 (void)
 
void FIELDSTG_endChoice1Answer0 (void)
 
void FIELDSTG_endChoice1Answer1 (void)
 
void FIELDSTG_endChoice2Answer0 (void)
 
void FIELDSTG_endChoice2Answer1 (void)
 
void FIELDSTG_endChoice3Answer0 (void)
 
void FIELDSTG_endChoice3Answer1 (void)
 
void FIELDSTG_endChoice4Answer0 (void)
 
void FIELDSTG_endChoice4Answer1 (void)
 
void FIELDSTG_endChoice5Answer0 (void)
 
void FIELDSTG_endChoice5Answer1 (void)
 
void FIELDSTG_endChoice6Answer0 (void)
 
void FIELDSTG_endChoice6Answer1 (void)
 
void FIELDSTG_endChoice7Answer0 (void)
 
void FIELDSTG_endChoice7Answer1 (void)
 
void FIELDSTG_endChoice8Answer0 (void)
 
void FIELDSTG_endChoice8Answer1 (void)
 
void FIELDSTG_endChoice9Answer0 (void)
 
void FIELDSTG_endChoice9Answer1 (void)
 
void FIELDSTG_endChoice10Answer0 (void)
 
void FIELDSTG_endChoice10Answer1 (void)
 
void FIELDSTG_endChoice11Answer0 (void)
 
void FIELDSTG_endChoice11Answer1 (void)
 
void FIELDSTG_endChoice12Answer0 (void)
 
void FIELDSTG_endChoice12Answer1 (void)
 
void FIELDSTG_endChoice13Answer0 (void)
 
void FIELDSTG_endChoice13Answer1 (void)
 
void FIELDSTG_endChoice14Answer0 (void)
 
void FIELDSTG_endChoice14Answer1 (void)
 
void FIELDSTG_endChoice15Answer0 (void)
 
void FIELDSTG_endChoice15Answer1 (void)
 
void FIELDSTG_setupField (void)
 The setup of the field's own stage (FIELDSTG_initFuncs), which fills FIELDSTG_state as the stage overlays' setup functions do; some points of the story change its soundBank and music.
 

Variables

const CVECTOR FIELDSTG_startColor = {0x80, 0x80, 0x80, 0}
 The color the field's stage starts with (FieldState.spriteColor)
 

Detailed Description

The field's own stage: the ends of its events and its setup.

Definition in file field_stage.c.

Macro Definition Documentation

◆ END_CHOICE

#define END_CHOICE (   n,
  a,
  b 
)
Value:
void FIELDSTG_endChoice##n##Answer0(void) { \
FLAGS_00.applyAction(0x400 + n, 1); \
} \
\
void FIELDSTG_endChoice##n##Answer1(void) { \
FLAGS_00.applyAction(0x400 + n, 1); \
}
GameFlags FLAGS_00
The flag bitset FLAGS_00 and the event functions.
Definition events.c:701
void(* applyAction)(s32 code, s32 value)
Definition game_state.h:52

The ends of the events of question n's answers (FIELDSTG_events): both set event flag 0x400 + n, and the first answer's also applies a, the auction's price (SPECIAL_LOSE_*_BIT), and b.

Definition at line 8 of file field_stage.c.

◆ FIELD_FILE

#define FIELD_FILE   0x1AD

Definition at line 42 of file field_stage.c.

Function Documentation

◆ FIELDSTG_endChoice0Answer0()

void FIELDSTG_endChoice0Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x7E

Definition at line 19 of file field_stage.c.

◆ FIELDSTG_endChoice0Answer1()

void FIELDSTG_endChoice0Answer1 ( void  )

Definition at line 19 of file field_stage.c.

◆ FIELDSTG_endChoice1Answer0()

void FIELDSTG_endChoice1Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x7E

Definition at line 20 of file field_stage.c.

◆ FIELDSTG_endChoice1Answer1()

void FIELDSTG_endChoice1Answer1 ( void  )

Definition at line 20 of file field_stage.c.

◆ FIELDSTG_endChoice2Answer0()

void FIELDSTG_endChoice2Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x7F

Definition at line 21 of file field_stage.c.

◆ FIELDSTG_endChoice2Answer1()

void FIELDSTG_endChoice2Answer1 ( void  )

Definition at line 21 of file field_stage.c.

◆ FIELDSTG_endChoice3Answer0()

void FIELDSTG_endChoice3Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x7F

Definition at line 22 of file field_stage.c.

◆ FIELDSTG_endChoice3Answer1()

void FIELDSTG_endChoice3Answer1 ( void  )

Definition at line 22 of file field_stage.c.

◆ FIELDSTG_endChoice4Answer0()

void FIELDSTG_endChoice4Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x80

Definition at line 23 of file field_stage.c.

◆ FIELDSTG_endChoice4Answer1()

void FIELDSTG_endChoice4Answer1 ( void  )

Definition at line 23 of file field_stage.c.

◆ FIELDSTG_endChoice5Answer0()

void FIELDSTG_endChoice5Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x80

Definition at line 24 of file field_stage.c.

◆ FIELDSTG_endChoice5Answer1()

void FIELDSTG_endChoice5Answer1 ( void  )

Definition at line 24 of file field_stage.c.

◆ FIELDSTG_endChoice6Answer0()

void FIELDSTG_endChoice6Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x81

Definition at line 25 of file field_stage.c.

◆ FIELDSTG_endChoice6Answer1()

void FIELDSTG_endChoice6Answer1 ( void  )

Definition at line 25 of file field_stage.c.

◆ FIELDSTG_endChoice7Answer0()

void FIELDSTG_endChoice7Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x81

Definition at line 26 of file field_stage.c.

◆ FIELDSTG_endChoice7Answer1()

void FIELDSTG_endChoice7Answer1 ( void  )

Definition at line 26 of file field_stage.c.

◆ FIELDSTG_endChoice8Answer0()

void FIELDSTG_endChoice8Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x82

Definition at line 27 of file field_stage.c.

◆ FIELDSTG_endChoice8Answer1()

void FIELDSTG_endChoice8Answer1 ( void  )

Definition at line 27 of file field_stage.c.

◆ FIELDSTG_endChoice9Answer0()

void FIELDSTG_endChoice9Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x82

Definition at line 28 of file field_stage.c.

◆ FIELDSTG_endChoice9Answer1()

void FIELDSTG_endChoice9Answer1 ( void  )

Definition at line 28 of file field_stage.c.

◆ FIELDSTG_endChoice10Answer0()

void FIELDSTG_endChoice10Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x83

Definition at line 29 of file field_stage.c.

◆ FIELDSTG_endChoice10Answer1()

void FIELDSTG_endChoice10Answer1 ( void  )

Definition at line 29 of file field_stage.c.

◆ FIELDSTG_endChoice11Answer0()

void FIELDSTG_endChoice11Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x83

Definition at line 30 of file field_stage.c.

◆ FIELDSTG_endChoice11Answer1()

void FIELDSTG_endChoice11Answer1 ( void  )

Definition at line 30 of file field_stage.c.

◆ FIELDSTG_endChoice12Answer0()

void FIELDSTG_endChoice12Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x84

Definition at line 31 of file field_stage.c.

◆ FIELDSTG_endChoice12Answer1()

void FIELDSTG_endChoice12Answer1 ( void  )

Definition at line 31 of file field_stage.c.

◆ FIELDSTG_endChoice13Answer0()

void FIELDSTG_endChoice13Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x85

Definition at line 32 of file field_stage.c.

◆ FIELDSTG_endChoice13Answer1()

void FIELDSTG_endChoice13Answer1 ( void  )

Definition at line 32 of file field_stage.c.

◆ FIELDSTG_endChoice14Answer0()

void FIELDSTG_endChoice14Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x86

Definition at line 33 of file field_stage.c.

◆ FIELDSTG_endChoice14Answer1()

void FIELDSTG_endChoice14Answer1 ( void  )

Definition at line 33 of file field_stage.c.

◆ FIELDSTG_endChoice15Answer0()

void FIELDSTG_endChoice15Answer0 ( void  )

< SPECIAL_CONDITIONS entry 0x87

Definition at line 34 of file field_stage.c.

◆ FIELDSTG_endChoice15Answer1()

void FIELDSTG_endChoice15Answer1 ( void  )

Definition at line 34 of file field_stage.c.

◆ FIELDSTG_setupField()

void FIELDSTG_setupField ( void  )

The setup of the field's own stage (FIELDSTG_initFuncs), which fills FIELDSTG_state as the stage overlays' setup functions do; some points of the story change its soundBank and music.

As theirs, the match depends on the start position being set with a constructor, (Vec2){x, y}.

< ENV_0204: the Cargo Tower

< ENV_0204: the Cargo Tower

< a cell's value: a direction (3 bits) and a StageSlot (5)

< EAUCTION: the Cargo Tower at some points of the story (FIELDSTG_setupField)

< EAUCTION: the Cargo Tower at some points of the story (FIELDSTG_setupField)

Definition at line 51 of file field_stage.c.

Variable Documentation

◆ FIELDSTG_startColor

const CVECTOR FIELDSTG_startColor = {0x80, 0x80, 0x80, 0}

The color the field's stage starts with (FieldState.spriteColor)

Definition at line 37 of file field_stage.c.

Referenced by FIELDSTG_setupField().