Alchemy
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
16
17#endif
The edition's language, for C to compare (LANGUAGE == LANGUAGE_GERMAN).
#define GameFlag_Clear
#define GameFlag_Set
The integer types, TRUE, UNUSED and the fixed-address macros.
signed int s32
Definition types.h:14