coastline 0.0.4
Loading...
Searching...
No Matches
racerslot.h File Reference
#include "common/types.h"
#include "common/vecmath.h"
#include "common/vehiclefwd.h"
Include dependency graph for racerslot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RacerSlot
 A racer of a race. More...

Macros

#define RACER_SLOTS   20
 The racers of a race.
#define RACER_CLOCK_STOPPED   0x3
 The racer status bits that stop its clock.
#define RACER_HELD   0x1
 The racer status bit that disengages its vehicle's gear.
#define RACER_FINISHED   0x2
 The racer status bit that marks a finished race.

Typedefs

typedef struct RacerSlot RacerSlot
 A racer of a race.

Functions

void InitRacerSlot (RacerSlot *slot)
 Set up a racer slot for the start of the race: attach its vehicle, or place it on the route of the track when it has none.
void SortRacersByPosition (void)
 Give each racer its place by distance, or read assigned vehicle positions from the network.
void UpdateRacerSlotRaceState (RacerSlot *slot)
 Update the assigned vehicle timers, messages, progress, and velocity for a frame.

Variables

RacerSlot g_aRacerSlots [RACER_SLOTS]
 The racers of the race.

Macro Definition Documentation

◆ RACER_SLOTS

#define RACER_SLOTS   20

The racers of a race.

◆ RACER_CLOCK_STOPPED

#define RACER_CLOCK_STOPPED   0x3

The racer status bits that stop its clock.

◆ RACER_HELD

#define RACER_HELD   0x1

The racer status bit that disengages its vehicle's gear.

◆ RACER_FINISHED

#define RACER_FINISHED   0x2

The racer status bit that marks a finished race.

Typedef Documentation

◆ RacerSlot

typedef struct RacerSlot RacerSlot

A racer of a race.

A racer with a vehicle copies the progress of the vehicle; one without moves along the route by itself, and keeps the progress a vehicle takes up when it gets one.

Function Documentation

◆ InitRacerSlot()

void InitRacerSlot ( RacerSlot * slot)

Set up a racer slot for the start of the race: attach its vehicle, or place it on the route of the track when it has none.

Parameters
slotThe slot of g_aRacerSlots.
Ghidra address:
USA: 0x802291f8
Ghidra address:
Asia: 0x80228D48
Ghidra address:
EUR: 0x8022a570
Ghidra address:
JPN: 0x80229d4c

◆ SortRacersByPosition()

void SortRacersByPosition ( void )

Give each racer its place by distance, or read assigned vehicle positions from the network.

Ghidra address:
USA: 0x80229550
Ghidra address:
Asia: 0x802290A0
Ghidra address:
EUR: 0x8022a8c8
Ghidra address:
JPN: 0x8022a080
Ghidra address:
BRD3D: 0x10066510
Ghidra address:
BRGlide: 0x1005f580

◆ UpdateRacerSlotRaceState()

void UpdateRacerSlotRaceState ( RacerSlot * slot)

Update the assigned vehicle timers, messages, progress, and velocity for a frame.

Parameters
slotThe slot of g_aRacerSlots.
Ghidra address:
USA: 0x8022cf88
Ghidra address:
Asia: 0x8022CAD8
Ghidra address:
EUR: 0x8022e498
Ghidra address:
JPN: 0x8022dc50

Variable Documentation

◆ g_aRacerSlots

RacerSlot g_aRacerSlots[RACER_SLOTS]
extern

The racers of the race.

Ghidra address:
USA: 0x803239a0
Ghidra address:
Asia: 0x80323450
Ghidra address:
EUR: 0x80325ea0
Ghidra address:
JPN: 0x80324ad0
Ghidra address:
BRD3D: 0x10acd498
Ghidra address:
BRGlide: 0x10af07f8