src/field/battle_background_rules.c
The battle background of each scene (fdBattleBackgroundSelectForMap).
Macros
| Name | Description | |
|---|---|---|
#define | BATTLE_BACKGROUND (resource) ((resource) + (Sint32)0x80000000) | A battle background's word: bit 31 set, its resource id below. |
Variables
| Name | Description | |
|---|---|---|
Sint32 | SceneBattleBackgroundRules [] | Each battle background followed by the scenes that use it, ended by 0; a scene takes the background listed last before it, and a scene not listed takes the last one. |
Description
The battle background of each scene (fdBattleBackgroundSelectForMap).
Macros in detail
BATTLE_BACKGROUND
#define BATTLE_BACKGROUND(resource) ((resource) + (Sint32)0x80000000)
A battle background's word: bit 31 set, its resource id below. The id is the address of an absolute symbol, which C adds to but cannot OR with.
Referenced by SceneBattleBackgroundRules.
Definition at line 9 of file battle_background_rules.c.
Variables in detail
SceneBattleBackgroundRules
Sint32 SceneBattleBackgroundRules[]
Each battle background followed by the scenes that use it, ended by 0; a scene takes the background listed last before it, and a scene not listed takes the last one.
References Sint32.
Referenced by fdBattleBackgroundSelectForMap().
Definition at line 15 of file battle_background_rules.c.