Skip to content
🌋️
Alchemy
Theme: Weyard
Theme: Modern
Mode: Auto
Mode: Light
Mode: Dark
Alchemy
Source
Reference
Loading...
Searching...
No Matches
game_flags.h
Go to the documentation of this file.
1
#ifndef ALCHEMY_GAME_FLAGS_H
2
#define ALCHEMY_GAME_FLAGS_H
3
4
/// @file
5
/// Setting and clearing game flags, and the byte that holds a flag.
6
7
#include "
edition.h
"
8
#include "
types.h
"
9
10
/// The byte of gGameFlagBytes that holds `flag`: bits 3 to 11 of its number,
11
/// isolated by shifting up and back down, which is how the game computes it.
12
#define GAME_FLAG_BYTE(flag) (((u32)(flag) << 20) >> 23)
13
14
s32
GameFlag_Set
();
15
void
GameFlag_Clear
(
s32
flag);
16
17
#endif
edition.h
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
GameFlag_Clear
#define GameFlag_Clear
Definition
field_event.h:299
GameFlag_Set
#define GameFlag_Set
Definition
field_event.h:297
types.h
The integer types, TRUE, UNUSED and the fixed-address macros.
s32
signed int s32
Definition
types.h:14
include
game
game_flags.h