1#ifndef COASTLINE_RACERSLOT_H
2#define COASTLINE_RACERSLOT_H
14#define RACER_CLOCK_STOPPED 0x3
18#define RACER_FINISHED 0x2
24#if TGR_BOSS_RALLY && defined(__cplusplus)
85 void UpdateRemoteVehicleFrame(
void);
95 Vec3f &GetPosition() {
99 Vec3f &GetPreviousPosition() {
103 Vec3f &GetVelocity() {
111 f32 GetSpeedKph()
const {
118 f32 SetSpeedKph(
f32 value) {
133 s32 GetPointIndex()
const {
140 s32 SetPointIndex(
s32 value) {
144 f32 GetLapTime()
const {
151 f32 SetLapTime(
f32 value) {
155 f32 GetBestLapTime()
const {
162 f32 SetBestLapTime(
f32 value) {
166 f32 GetTotalTime()
const {
173 f32 SetTotalTime(
f32 value) {
177 f32 GetTimeLeft()
const {
184 f32 SetTimeLeft(
f32 value) {
199 s32 GetDistanceLaps()
const {
206 s32 SetDistanceLaps(
s32 value) {
210 s32 GetMaxGate()
const {
217 s32 SetMaxGate(
s32 value) {
221 s32 GetGate()
const {
232 f32 GetDistance()
const {
239 f32 SetDistance(
f32 value) {
243 s32 GetRacePosition()
const {
250 s32 SetRacePosition(
s32 value) {
265 s32 GetIndex()
const {
273 return index = value;
276 u32 GetStatus()
const {
283 u32 SetStatus(
u32 value) {
287 s32 GetStraggler()
const {
294 s32 SetStraggler(
s32 value) {
298 u8 **GetColorPanels()
const {
305 u8 **SetColorPanels(
u8 **value) {
306 return colorPanels = value;
309 s32 GetColorPanelCount()
const {
310 return colorPanelCount;
316 s32 SetColorPanelCount(
s32 value) {
317 return colorPanelCount = value;
326 void FreeEnemyCarColorPanels(
void);
338#if TGR_BOSS_RALLY && defined(__cplusplus)
384#if TGR_PLATFORM == TGR_PLATFORM_N64
405void MakeEnemyCarColorPanels(
RacerSlot *slot);
void UpdateRacerSlotMotion(RacerSlot *slot)
Drive an assigned vehicle or advance an unassigned racer along the route.
void UpdateRaceProgress(RacerSlot *slot)
Count the gates and laps a racer crossed this frame, with its lap records and messages,...
void UpdateRacerSlotRaceState(RacerSlot *slot)
Update the assigned vehicle timers, messages, progress, and velocity for a frame.
void SortRacersByPosition(void)
Give each racer its place by distance, or read assigned vehicle positions from the network.
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 tr...
RacerSlot g_aRacerSlots[RACER_SLOTS]
The racers of the race.
#define RACER_SLOTS
The racers of a race.
Definition racerslot.h:11
A racer of a race.
Definition racerslot.h:28
Vec3f previousPosition
Definition racerslot.h:31
s32 racePosition
Definition racerslot.h:45
s32 lap
Definition racerslot.h:40
s32 straggler
Definition racerslot.h:53
s32 index
Definition racerslot.h:49
f32 lapTime
Definition racerslot.h:36
f32 distance
Definition racerslot.h:44
struct TrackSection * section
Definition racerslot.h:34
Vehicle * vehicle
Definition racerslot.h:48
f32 speedKph
Definition racerslot.h:33
u8 color[3]
Definition racerslot.h:47
s32 pointIndex
Definition racerslot.h:35
u8 unreconstructed6C[0x74 - 0x6C]
Definition racerslot.h:52
u32 status
Definition racerslot.h:50
u8 unreconstructed58[0x5C - 0x58]
Definition racerslot.h:46
s32 gate
Definition racerslot.h:43
s32 distanceLaps
Definition racerslot.h:41
f32 bestLapTime
Definition racerslot.h:37
Vec3f position
Definition racerslot.h:30
f32 totalTime
Definition racerslot.h:38
f32 timeLeft
Definition racerslot.h:39
Vec3f velocity
Definition racerslot.h:32
s32 maxGate
Definition racerslot.h:42
A section of the route.
Definition track.h:38
A point or direction in space.
Definition vecmath.h:17
A vehicle.
Definition vehicle.h:143
struct TrackSection TrackSection
A section of the route.
The integer and floating-point types of the console, for headers shared with Windows.
unsigned int u32
Definition ultratypes.h:20
float f32
Definition ultratypes.h:38
int s32
Definition ultratypes.h:25
unsigned char u8
Definition ultratypes.h:18
The vector and matrix arithmetic of the game, its arctangent and power, the triangle and segment test...
struct Vehicle Vehicle
A vehicle in the race simulation.
Definition vehiclefwd.h:9