include/field
Guide: Field Engine
Files
| File | Description |
|---|---|
actor.h | Actors, the actor snapshot, and the screen transition styles. |
actor_script.h | Actor scripts: one Sint32 command word, then its operands, as ActorScriptCommandTable runs them. |
actor_update_arm.h | The unused ARM copy of the actors' update (actor_update_arm.c), and ACTOR_ARM_VIEW, ACTOR as GCC 2.95.2 reads it. |
curve.h | The step counts, value shift, and per-pixel tables of the terrain height curves (terrain_tables.c). |
emote.h | What an actor shows over it: the bubbles of fdActorShowEmoteById and the effects fdEffectSetAttached attaches. |
encounter_zone.h | The encounter zones. |
engine_stubs.h | The field engine module's stub calls: the commands scripts are written in (actors, messages, camera, destinations), field Psynergy, weather and the field's effects. |
facing.h | The constant tables of facing.c: which picture of an animation an actor shows for each way it faces, and beside them the sprite dissolve's pixel order, the fixed camera's matrix, a floating actor's bob, the actor scripts' end script and the World Map camera's lean for the direction pad. |
field.h | The field engine's shared functions, globals and actor scripts. |
field_blend.h | FIELD_BLEND_STATE, the field's colour blend state. |
field_coordinate.h | FIELD_COORDINATE, a position on the field. |
field_effect.h | Field effects, their scripts and the flags that spawn them. |
field_effect_scripts.h | The actor scripts field effects give their particles and fragments. |
field_engine.h | What the field engine's object (field_engine.c) defines for the code outside it: encounters, the field's actors, the leader's walking, the scene's cues, treasure spots, screen transitions and the palette fade. |
field_engine_functions.h | The field-engine module's functions, declared in the order of its stub table. |
field_engine_script.h | The field engine's script functions (field_engine_items.c, script_commands_field_psynergy.c, script_commands_scripts.c and script_commands_messages.c). |
field_functions.h | The field module's functions, declared in the order of its stub table, without the tables and types field.h brings in. |
field_particle.h | The particles field Psynergy moves and draws, each with a sprite of its own. |
field_psynergy_state.h | FIELD_EFFECT_STATE, the state of a field Psynergy. |
field_state.h | FIELD_STATE, the running scene's state, with its treasure spots and the raised cues the field engine handles itself. |
ground_mask.h | The ground mask, which hides the parts of an actor that raised ground in front of it should cover. |
lucky_dice.h | Lucky Dice, the dice game in Tolbi (lucky_dice.c), and the small fixed-point helpers it keeps for its 3D camera. |
lucky_dice_stubs.h | Lucky Dice's entry point. |
lucky_wheels.h | Lucky Wheels, Tolbi's game of chance (lucky_wheels.c), and the unused LZ packer kept beside it. |
lucky_wheels_lzpack.h | The LZ packer's state: hash chains over a 1024-byte window, one chain per byte value, and the output it is building. |
lucky_wheels_stubs.h | The Lucky Wheels entry point. |
map_grid.h | Map grids: their metatiles, layers, animations and blend scripts, and the map grid state. |
particle.h | Particle and SCREEN_POINT, the positions animations move through. |
perspective.h | The world map's perspective view state. |
scene_tables.h | The scene table formats: entrances, exits, actor placements and cues, and the macros that write them. |
screen_transition.h | What the field engine's parts share with the files that define their tables: the item-display and Reveal scripts, the palette fade's colour curves, and the screen transitions' shapes, tables and window values. |
script.h | The calls scripts are written in: the constants and small inlines a scene's scripts share, over the main-image functions they call by those functions' own names (fdScriptStart, fdActorJump, fdScriptSetMessageId and the rest), whose declarations it includes. |
script_commands.h | What script_commands.c declares for the files that use it: the commands scripts run, moving on the field, weather and line scrolls, Djinn joining the party, each field Psynergy and its effects, and the map screen. |
script_inline.h | The script inlines: one typed inline for each script command a script calls by its own name, passing it on to the main image's import (fdActorFaceEachOther calls fdActorTurnToFaceEachOther). |
script_operands.h | The actor script interpreter and the operands its commands read. |
speaker.h | The speaker lookup's view of an actor's sprite, the speaker definitions, and the palette fade's heap slot. |
sprite.h | Animated sprites: their layers, pictures and colour modes, and the resource slots they draw from. |
stubs.h | The field module's stub calls: actors and their sprites, movement, and the map and world map. |
weather.h | The ground particles, motes of light and sparkles that the weather state holds. |
world_map_affine.h | The world map's scanlines and affine lines. |
world_map_encounter_rules.h | Which encounter zone each part of the World Map takes, and the Djinn battles' formations. |