Skip to Content
The Alchemy Project

include/game

Guide: Game Logic & Tables

Files

FileDescription
character.hThe definitions of characters, Djinn and enemies, as The Broken Seal's character.h has them; an enemy's lacks the ten bytes The Broken Seal's keeps before its items.
character_ids.hThe eight playable characters' ids, with each one's Japanese name: one for each row of CharacterDefinitionTable in order.
game.hThe game's rules and data as the battles, the field and the menus share them: the tables of items, abilities, summons, Djinn, characters and enemies, the field Psynergy each ability casts, and the game module's functions the other modules call.
game_flags.hThe game flags' size, and the byte and bit of GameFlagBytes that hold a flag.
game_functions.hThe game module's functions, declared once each in the order of its stub table, without the inline game.h brings in with battle/battle_unit.h.
inventory.hA unit's fifteen inventory slots: counting, finding, adding and taking items, and finding who in the party carries one.
item.hItems: their definitions, types, flags and effects.
main_routine.hThe main routine, which runs the game's engines one after another, and the scene changes between them.
main_routine_state.hThe values MainRoutineStateWork's fields hold.
stubs.hThe stub calls into the game module, as the other modules' code calls them.
system_call.hThe names the scene and debug overlays call these main-image functions by: one typed inline each, which calls the function through the overlay's import stub.

On this page