Skip to Content
The Alchemy Project

include/scene/trial_road.h

The Trial Road's race progress, kept in the inventory snapshot, and the declarations the Trial Road shares with the Izumo Ruins and Magma Rock's inside: the calls their overlays make, some through their own import rows.

Included by izumo_ruins.c, magma_rock_inside.c and trial_road.c.

Structures

NameDescription
structTRIAL_ROAD_STATETrial Road's progress, kept in the inventory snapshot while the trial runs.

Macros

NameDescription
#defineINVENTORY_SNAPSHOT_TRIAL_ROAD 136TrialRoadStateWork's place in InventorySnapshot, past what gmInventorySnapshotSave keeps of Felix's party: the sentinel, the four inventories, the shortcuts and the party order.
#defineTrialRoadStateWork

Functions

NameDescription
Sint32fdMapGetTerrainHeight (Sint32 layer, Sint32 x, Sint32 z)The ground height of a layer at (x, z), 16.16 pixels (fdMapGridGetTerrainHeight, through the overlay's own import row).
voidscTrialRoadCopyTouchedMetatiles (Sint32 x, Sint32 z, Sint32 layerIndex, Sint32 width, Sint32 height, Sint32 toX, Sint32 toZ)Cyclone scatters the bushes or weeds it touches (fdCycloneCopyTouchedMetatiles, through the overlay's own import row).
voidsyImportMadPlantLeapAtLeader (Sint32 sprite, Sint32 x, Sint32 z)A Mad Plant springs out of the cleared bushes and leaps at the leader (fdMadPlantLeapAtLeader, through the overlay's own import row).
static inline voidscTrialRoadFieldCycloneCopyTouchedMetatiles (Sint32 x, Sint32 z, Sint32 layerIndex, Sint32 width, Sint32 height, Sint32 toX, Sint32 toZ)Cyclone scatters the bushes or weeds it touches (fdCycloneCopyTouchedMetatiles): script_inline.h's scFieldCycloneCopyTouchedMetatiles, through the import this scene calls the function by.

Description

The Trial Road's race progress, kept in the inventory snapshot, and the declarations the Trial Road shares with the Izumo Ruins and Magma Rock's inside: the calls their overlays make, some through their own import rows.

Macros in detail

INVENTORY_SNAPSHOT_TRIAL_ROAD

#define INVENTORY_SNAPSHOT_TRIAL_ROAD 136

TrialRoadStateWork's place in InventorySnapshot, past what gmInventorySnapshotSave keeps of Felix's party: the sentinel, the four inventories, the shortcuts and the party order.

Definition at line 30 of file trial_road.h.

TrialRoadStateWork

#define TrialRoadStateWork

Referenced by scGetActorPlacements(), scGetCues(), scInit(), scPrepareMap(), scTrialRoadDealStageOrder(), scTrialRoadGetStage(), scTrialRoadIsMirrored(), scTrialRoadOpenChests(), scTrialRoadPutItemInChest(), scTrialRoadRivalIsAhead(), scTrialRoadShutSummitDoorway(), scTrialRoadTakeStairs() and scTrialRoadUpdateRival().

Definition at line 31 of file trial_road.h.

Functions in detail

scTrialRoadCopyTouchedMetatiles

void scTrialRoadCopyTouchedMetatiles(Sint32 x, Sint32 z, Sint32 layerIndex, Sint32 width, Sint32 height, Sint32 toX, Sint32 toZ)

Cyclone scatters the bushes or weeds it touches (fdCycloneCopyTouchedMetatiles, through the overlay's own import row).

Referenced by scTrialRoadFieldCycloneCopyTouchedMetatiles().

Definition at line 38 of file trial_road.h.

syImportMadPlantLeapAtLeader

void syImportMadPlantLeapAtLeader(Sint32 sprite, Sint32 x, Sint32 z)

A Mad Plant springs out of the cleared bushes and leaps at the leader (fdMadPlantLeapAtLeader, through the overlay's own import row).

Referenced by scTrialRoadScatterWeedsHidingMadPlant().

Definition at line 47 of file trial_road.h.

scTrialRoadFieldCycloneCopyTouchedMetatiles

static inline void scTrialRoadFieldCycloneCopyTouchedMetatiles(Sint32 x, Sint32 z, Sint32 layerIndex, Sint32 width, Sint32 height, Sint32 toX, Sint32 toZ)

Cyclone scatters the bushes or weeds it touches (fdCycloneCopyTouchedMetatiles): script_inline.h's scFieldCycloneCopyTouchedMetatiles, through the import this scene calls the function by.

References scTrialRoadCopyTouchedMetatiles() and Sint32.

Referenced by scTrialRoadScatterWeeds() and scTrialRoadScatterWeedsHidingMadPlant().

Definition at line 53 of file trial_road.h.