coastline 0.0.4
Loading...
Searching...
No Matches
RacerSlot Struct Reference

A racer of a race. More...

#include <racerslot.h>

Collaboration diagram for RacerSlot:

Public Attributes

Vec3f position
Vec3f previousPosition
Vec3f velocity
f32 speedKph
struct TrackSection * section
s32 pointIndex
f32 lapTime
f32 bestLapTime
f32 totalTime
f32 timeLeft
s32 lap
s32 distanceLaps
s32 maxGate
s32 gate
f32 distance
s32 racePosition
u8 unreconstructed58 [0x5C - 0x58]
u8 color [3]
Vehicle * vehicle
s32 index
u32 status
u8 unreconstructed6C [0x74 - 0x6C]
s32 straggler

Detailed Description

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.

Member Data Documentation

◆ position

Vec3f RacerSlot::position

The position of the racer.

◆ previousPosition

Vec3f RacerSlot::previousPosition

The position of the last frame.

◆ velocity

Vec3f RacerSlot::velocity

How far the racer moves a second.

◆ speedKph

f32 RacerSlot::speedKph

The speed of the racer, in kilometres an hour.

◆ section

struct TrackSection* RacerSlot::section

The section of the route the racer is on.

◆ pointIndex

s32 RacerSlot::pointIndex

The point of the racer in its section.

◆ lapTime

f32 RacerSlot::lapTime

The time of the lap being driven, in seconds.

◆ bestLapTime

f32 RacerSlot::bestLapTime

The time of the best lap, in seconds.

◆ totalTime

f32 RacerSlot::totalTime

The time of the race so far, in seconds.

◆ timeLeft

f32 RacerSlot::timeLeft

The time remaining, in seconds.

◆ lap

s32 RacerSlot::lap

The laps finished.

◆ distanceLaps

s32 RacerSlot::distanceLaps

The laps the distance travelled has counted.

◆ maxGate

s32 RacerSlot::maxGate

The farthest gate passed, counted across laps.

◆ gate

s32 RacerSlot::gate

The gate last crossed, counted across laps.

◆ distance

f32 RacerSlot::distance

The distance travelled along the route.

◆ racePosition

s32 RacerSlot::racePosition

The place in the race, from 0 for the leader.

◆ unreconstructed58

u8 RacerSlot::unreconstructed58[0x5C - 0x58]

Not read by the routines reconstructed so far.

◆ color

u8 RacerSlot::color[3]

The color of the vehicle the racer drives.

◆ vehicle

Vehicle* RacerSlot::vehicle

The vehicle of the racer, or NULL.

◆ index

s32 RacerSlot::index

The index of the racer in g_aRacerSlots.

◆ status

u32 RacerSlot::status

The RACER_ bits. The clock of the racer runs while the bits of RACER_CLOCK_STOPPED are clear.

◆ unreconstructed6C

u8 RacerSlot::unreconstructed6C[0x74 - 0x6C]

Not read by the routines reconstructed so far.

◆ straggler

s32 RacerSlot::straggler

Set for a racer past the thirteenth after the players. The championship slows the vehicle of a straggler more, and the racers of each kind share separate vehicles.


The documentation for this struct was generated from the following file: