Skip to Content
The Alchemy Project

struct TRIAL_ROAD_LINK_STATE

The heap slot scTrialRoadShowRaceMap takes for the race map of both parties and the rival's recorded path.

Declared in trial_road.c.

Fields

NameDescription
TRIAL_ROAD_SPRsprites [18]the display's queued sprites
Sint16vramEntry
Sint16fade0 hidden to 2 shown, a step a
Sint16scrollXtick
Sint16scrollY
Sint16holdFadenonzero holds the fade at 2
Sint16leaderIdthe actor the first marker follows
Sint16rivalIdthe second marker's, which the recording replays
Uint16rivalTimers [2]link-race timers (far, near); never written
Sint16resourcethe recorded path's resource, once decoded
Sint32originXthe course's corner the markers
Sint32originZmeasure from
Sint16path [RIVAL_PATH_LENGTH]x, z pairs in pixels, 0, 0 ending them

Description

The heap slot scTrialRoadShowRaceMap takes for the race map of both parties and the rival's recorded path.

struct TRIAL_ROAD_LINK_STATE

Referenced by scTrialRoadDrawRaceMap(), scTrialRoadMoveRival(), scTrialRoadPlayRivalRecording(), scTrialRoadShowRaceMap() and scTrialRoadStartRival().

Definition at line 565 of file trial_road.c.

Fields in detail

sprites

TRIAL_ROAD_SPR sprites[18]

the display's queued sprites

vramEntry

Sint16 vramEntry

fade

Sint16 fade

0 hidden to 2 shown, a step a

scrollX

Sint16 scrollX

tick

scrollY

Sint16 scrollY

holdFade

Sint16 holdFade

nonzero holds the fade at 2

leaderId

Sint16 leaderId

the actor the first marker follows

rivalId

Sint16 rivalId

the second marker's, which the recording replays

rivalTimers

Uint16 rivalTimers[2]

link-race timers (far, near); never written

resource

Sint16 resource

the recorded path's resource, once decoded

originX

Sint32 originX

the course's corner the markers

originZ

Sint32 originZ

measure from

path

Sint16 path[RIVAL_PATH_LENGTH]

x, z pairs in pixels, 0, 0 ending them