src/game/game_internal.h
What every part of the game object shares: its includes and the inventory helper two parts use. More…
#include "ability_ids.h"#include "debug/debug.h"#include "enemy_ids.h"#include "flags.h"#include "item_ids.h"#include "macros.h"#include "resource_ids.h"#include "battle/battle.h"#include "battle/battle_random.h"#include "battle/battle_side.h"#include "field/engine_stubs.h"#include "field/script.h"#include "game/game_flags.h"#include "graphics/graphics.h"#include "window/stubs.h"#include "text/msg_ids.h"
Included by game.c.
Functions
| Name | Description | |
|---|---|---|
static inline void | gmInventoryCompactSlots (Sint16 *inventory) | Keeps occupied slots in order and clears the unused inventory tail, for gmInventoryRemove (game_inventory.c) and gmInventorySnapshotSave (game_snapshot.c). |
Description
What every part of the game object shares: its includes and the inventory
helper two parts use. game.c includes it once, before the parts.
Functions in detail
gmInventoryCompactSlots
static inline void gmInventoryCompactSlots(Sint16 *inventory)
Keeps occupied slots in order and clears the unused inventory tail, for
gmInventoryRemove (game_inventory.c) and gmInventorySnapshotSave
(game_snapshot.c). A slot is empty when it is 0.
References Sint32.
Referenced by gmInventoryRemove() and gmInventorySnapshotSave().
Definition at line 27 of file game_internal.h.