Alchemy
Loading...
Searching...
No Matches

game_flags.h File Reference

Setting and clearing game flags, and the byte that holds a flag. More...

Go to the source code of this file.

Macros

#define GAME_FLAG_BYTE(flag)
 The byte of gGameFlagBytes that holds flag: bits 3 to 11 of its number, isolated by shifting up and back down, which is how the game computes it.

Functions

s32 GameFlag_Set ()
void GameFlag_Clear (s32 flag)

Detailed Description

Setting and clearing game flags, and the byte that holds a flag.

Definition in file game_flags.h.

Macro Definition Documentation

◆ GAME_FLAG_BYTE

#define GAME_FLAG_BYTE ( flag)
Value:
(((u32)(flag) << 20) >> 23)
unsigned int u32
Definition types.h:15

The byte of gGameFlagBytes that holds flag: bits 3 to 11 of its number, isolated by shifting up and back down, which is how the game computes it.

Definition at line 12 of file game_flags.h.

Referenced by GameFlag_ClearBit(), GameFlag_DecrementByte(), GameFlag_IncrementByte(), GameFlag_SetBit(), GameFlag_SetNibble(), GameFlag_Test(), and GameFlag_Toggle().

Function Documentation

◆ GameFlag_Set()

s32 GameFlag_Set ( )

◆ GameFlag_Clear()

void GameFlag_Clear ( s32 flag)