src/field/battle_background_rules.c
The battle background of each scene (fdBattleBackgroundSelectForMap). More…
Macros
| Name | Description | |
|---|---|---|
#define | BATTLE_BACKGROUND (resource) (Sint32)(0x80000000 + (resource)) | A backdrop's row in SceneBattleBackgroundRules: its resource number with bit 31 set, before the scenes that take it. |
Variables
| Name | Description | |
|---|---|---|
const Sint32 | SceneBattleBackgroundRules [] | The battle background by scene (fdBattleBackgroundSelectForMap): a scene takes the last backdrop listed before it, and one not listed the last backdrop of all; 0 ends the table. |
Description
The battle background of each scene (fdBattleBackgroundSelectForMap). Where
the party restarts after a defeat and where the ship waits is return_rules.s,
linked before this.
Macros in detail
BATTLE_BACKGROUND
#define BATTLE_BACKGROUND(resource) (Sint32)(0x80000000 + (resource))
A backdrop's row in SceneBattleBackgroundRules: its resource number with bit
31 set, before the scenes that take it.
Referenced by SceneBattleBackgroundRules.
Definition at line 10 of file battle_background_rules.c.
Variables in detail
SceneBattleBackgroundRules
const Sint32 SceneBattleBackgroundRules[]
The battle background by scene (fdBattleBackgroundSelectForMap): a scene takes the last backdrop
listed before it, and one not listed the last backdrop of all; 0 ends the table.
References Sint32.
Referenced by fdBattleBackgroundSelectForMap().
Definition at line 16 of file battle_background_rules.c.