The field engine's shared routines, globals and object scripts. More...
Go to the source code of this file.
Data Structures | |
| struct | Flags35 |
| An actor seen only as its priority flags at 0x23 (enum ActorPriorityFlag). More... | |
| struct | OverlayActorPosition |
| An actor seen only as the coordinate at 0x08, which Goma Cave's stump reads in 16-pixel map cells. More... | |
| struct | OverlayActorState |
| An actor seen only as its priority flags at 0x23 (enum ActorPriorityFlag). More... | |
| struct | PathRecorder |
| The Colosso rival's path player in the scene state: its mode (1 playing, 2 recording, 9 finished), whether it mirrors the path, the actor, its place in the path and how long the actor has stood still. More... | |
| struct | Slot |
| struct | SwitchCell |
| A Venus Lighthouse switch or pillar socket's map cell. More... | |
| struct | T |
| struct | TileRun |
| A log in Kolima Forest lying across four map cells, from its first cell across or, when vertical, down. More... | |
Functions | |
| s32 | CalculateFacingAngle (s32, s32) |
| void | Engine_ActorFollow (s32 actor, s32 leader) |
| void | Engine_EventClearInvalidPackedValues (void) |
| s32 | Engine_PartyRemoveItem (s32 item) |
| s32 | FarCall_BlankLoadTable (s32 entrance) |
| s32 | FarCall_BlankRunTable (s32 entrance) |
| void | FieldScene_PrepareActors (struct ScenePlacement *entry) |
| s32 | GameFlag_IsSet (s32 flag) |
| void | WorldMap_BeginStillView (void) |
| Freezes the world map's perspective view as a still picture on BG1: saves BG1's tiles, draws the current affine frame into pixels and hands the window and VBlank to it. | |
| s32 | Math_Atan2 (s32 dy, s32 dx) |
| void | Object_Destroy (struct DispatchObject *work) |
| void | ScenePlacement_ClipToView (struct ScenePlacement *placements) |
| void | SceneTable_Prepare (struct ScenePlacement *placements) |
The field engine's shared routines, globals and object scripts.
Definition in file field.h.
Referenced by CalculateFacingAngle(), and Sanctum_FaceActorNamedByTimer().
Referenced by AltmillerCave_RestoreBabiAndInviteParty(), and Engine_ActorFollow().
| void Engine_EventClearInvalidPackedValues | ( | void | ) |
Referenced by Colosso_ControlCharacterAlone(), and Engine_EventClearInvalidPackedValues().
Referenced by AltmillerCave_RestoreBabiAndInviteParty(), and Engine_PartyRemoveItem().
Referenced by FarCall_BlankLoadTable().
Referenced by FarCall_BlankRunTable().
| void FieldScene_PrepareActors | ( | struct ScenePlacement * | entry | ) |
| void WorldMap_BeginStillView | ( | void | ) |
Freezes the world map's perspective view as a still picture on BG1: saves BG1's tiles, draws the current affine frame into pixels and hands the window and VBlank to it.
Called through WorldMap_BeginStillViewFar by WorldMap_BeginEvent when a menu or event starts on the world map, and by the world map scene's lighthouse transition. Sets animationActive, suspends the tile animations (MapAnimation_Update), copies 8 KB of char block 1 to gDecodeBuffer, sets the window rows to 200 and 255 (BG mode 0) and sets gVBlankHook to MapAnimation_PresentFrame. Map_LoadAreaGraphics undoes it.
Definition at line 701 of file world_map.c.
Referenced by Colosso_UpdatePathRival(), and Math_Atan2().
| void Object_Destroy | ( | struct DispatchObject * | work | ) |
Referenced by Kalay_UpdateTunnelParticle(), and Object_Destroy().
| void ScenePlacement_ClipToView | ( | struct ScenePlacement * | placements | ) |
Referenced by BilibinInteriors_GetPlacements(), and ScenePlacement_ClipToView().
| void SceneTable_Prepare | ( | struct ScenePlacement * | placements | ) |
Referenced by SceneTable_Prepare(), and XianInteriors_GetPlacements().
|
extern |
Referenced by ObjectSystem_Initialize().
|
extern |
Referenced by ObjectSystem_Initialize().
|
extern |
The script FieldObject_Create gives every new object: it does nothing and returns to the idle script.
Definition at line 14 of file object_script.c.
Referenced by FieldObject_Create().
|
extern |
World map terrain behaviour, indexed by the collision value plus 0x10 when the block word's top bit is set, or plus 0x20 (whatever that bit) for terrain kind 21.
Read only by GetWorldMapTerrainBehavior.
Definition at line 37 of file mapdata.c.
Referenced by GetWorldMapTerrainBehavior().
|
extern |
Referenced by ObjectSystem_UpdateCamera(), ObjectSystem_UpdateCameraFixed(), and Sprite_ComposeAnimationFrame().
|
extern |
Referenced by Runtime_RemapBytesByTable().
|
extern |
Referenced by AltinPeak_StartPaletteAnim(), and AltinPeak_StepPaletteAnim().
|
extern |
Referenced by AltinPeak_StartPaletteAnim(), and AltinPeak_StepPaletteAnim().
|
extern |
Referenced by FieldFx_SpawnBurstParticle().
|
extern |
Referenced by FieldFx_SpawnBurstParticle().
|
extern |
Each set is a palette and five tile sets; WorldMap_LoadGraphics takes the second set when the cell it loads at has terrain kind 21, and keeps the set's row in the perspective work's resources.
Not const: the loader reads it through a u32 *.
Definition at line 12 of file world_map_resources.c.
Referenced by WorldMap_LoadGraphics().
|
extern |
Referenced by BattleFx_ConfigureLinkedObject().
|
extern |
Referenced by FieldEffect_InitSparkles().
|
extern |
The message of each searchable tile code from 242 to 247, as an offset from MsgTileChecked and MsgTileResult.
Definition at line 24 of file fxdata.c.
Referenced by Field_SearchTile().
|
extern |
Referenced by FieldMotes_Start().
|
extern |
The resource ids of the four sprites FourObjectMotion shows.
Definition at line 55 of file menudata.c.
Referenced by FourObjectMotion_InitializeBottomRow(), FourObjectMotion_InitializeTopRow(), and FourObjectMotion_ReplaceSlot().
|
extern |
Frames left of the Kraken's current jolt; at 0 another may start.
Definition at line 4570 of file tolbi_ship_interiors.c.
Referenced by TolbiShipInteriors_ApplyEntryState(), TolbiShipInteriors_NoticeShipRocking(), and TolbiShipInteriors_ShakeWhileKrakenAboard().
|
extern |
|
extern |
Referenced by KolimaForestBend_DrawWaterLevel(), KolimaForestBend_Initialize(), and KolimaForestBend_PushLog().
|
extern |
|
extern |
|
extern |
|
extern |
Referenced by FieldFx_StepRatioTransition(), Map_InitializePerspectiveScene(), and WorldMap_UpdateView().
|
extern |
Definition at line 2846 of file babi_palace.c.
Referenced by Scene_GetEvents().
|
extern |
Referenced by WorldMap_PlayLighthouseTransition().
|
extern |
Referenced by WorldMap_PlayLighthouseTransition().
|
extern |
Referenced by WorldMap_PlayLighthouseTransition().
|
extern |
Referenced by Kalay_AlternateGuidesPacing(), and Kalay_StartGuidesPacing().
|
extern |
Referenced by KolimaForestBend_FlipFloodgateSwitch(), and KolimaForestBend_ShakeLines().
|
extern |
Referenced by KolimaForestBend_CaptureShakeScroll(), and KolimaForestBend_ShakeLines().
|
extern |
Definition at line 171 of file kolima_forest_clearing.c.
Referenced by KolimaPalette_Restore(), and KolimaPalette_SaveFirst().
|
extern |
Definition at line 172 of file kolima_forest_clearing.c.
Referenced by KolimaPalette_Restore(), and KolimaPalette_SaveSecond().
|
extern |
Referenced by Colosso_FadeInCompetitor(), and Colosso_RestoreCompetitor().
|
extern |
Referenced by Colosso_FadeInCompetitor(), and Colosso_RestoreCompetitor().
|
extern |
Referenced by Colosso_FadeInCompetitor(), and Colosso_RestoreCompetitor().
|
extern |
Referenced by Colosso_DrawGauge().
|
extern |
Referenced by Colosso_UpdateMarker().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Referenced by Colosso_UpdateLettering().
|
extern |
Definition at line 3887 of file vault_interiors.c.
Referenced by VaultInteriors_StartActorStops(), and VaultInteriors_UpdateActorStops().
|
extern |
Referenced by Object_RunUpdateAllFromHeap().
|
extern |
A child value by frame ((gFrameCount >> 1) & 3).
Definition at line 344 of file fxdata.c.
Referenced by ObjectGroup_ApplyIndexedChildValue().
|
extern |
Referenced by ObjectMotion_SetActionCallback().
|
extern |
Referenced by ObjectMotion_SetActionCallback().
|
extern |
Referenced by ObjectMotion_SetActionCallback().
|
extern |
Referenced by ObjectMotion_SetActionCallback().
|
extern |
Referenced by Motion_LaunchFromFocusedObject().
|
extern |
Referenced by ObjectMotion_SetActionCallback().
|
extern |
Referenced by ObjectMotion_SetActionCallback().
|
extern |
Referenced by ObjectMotion_ArmCallback(), and Scene_TalkToActor().
|
extern |
Referenced by ObjectMotion_SetActionCallback().
|
extern |
Squashes as many times as the variant (1 to 3): variant v starts at word (3 - v) * 32 and runs to the end.
field.h declares it const u8[], and psynergy_effects.c adds (3 - v) << 7 bytes and reads it through an s32 *.
Definition at line 300 of file fxdata.c.
Referenced by ObjectMotion_SetVariantCallback().
|
extern |
Referenced by HeatGauge_Start().
|
extern |
Referenced by HeatGauge_Draw().
|
extern |
Referenced by HeatGauge_Draw(), HeatGauge_SetHeld(), and HeatGauge_Start().
|
extern |
Referenced by HeatGauge_Draw(), and HeatGauge_Start().
|
extern |
Referenced by HeatGauge_Draw(), and HeatGauge_Start().
|
extern |
Referenced by HeatGauge_Draw().
|
extern |
Referenced by ObjectSystem_UpdateCamera(), ObjectSystem_UpdateCameraFixed(), and Sprite_ComposeAnimationFrame().
|
extern |
Referenced by SolSanctumStatue_InitializeScrollingSprites().
|
extern |
Definition at line 2140 of file altmiller_cave.c.
|
extern |
Referenced by TileMap_DrawRowsFromRam().
|
extern |
Referenced by TileMap_DrawRowsFromRam().
|
extern |
Referenced by Map_InitializePerspectiveScene().
|
extern |
Two scripts for the world map's footprint and dust effects: wait 120 or 30 frames, then release the object.
FieldObject_UpdatePlayerControl starts the first and Object_MoveOnWorldMap the second (three words in).
Definition at line 121 of file facing.c.
Referenced by FieldObject_UpdatePlayerControl(), and Object_MoveOnWorldMap().
|
extern |
The heading for each state of the direction pad (bits 4-7 of the keys); 0xffff means no direction is held, or only an opposite pair.
Read by FieldObject_UpdatePlayerControl, Object_MoveOnWorldMap and Object_MoveByKeys.
Definition at line 113 of file facing.c.
Referenced by FieldObject_UpdatePlayerControl(), Object_MoveByKeys(), and Object_MoveOnWorldMap().