coastline 0.0.4
Loading...
Searching...
No Matches
racers.h
Go to the documentation of this file.
1#ifndef COASTLINE_RACERS_H
2#define COASTLINE_RACERS_H
3
10
11#include <PR/ultratypes.h>
12
13#include "common/track.h"
14#include "common/vecmath.h"
15#include "common/vehicle.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
32
44
56
68
80
89extern const char *g_apszRaceProgressStrings[RACER_SLOTS];
90
104void FindTrackRoutePoint(TrackSection *section, f32 distance);
105
121void AdvanceAlongTrackRoute(TrackSection *section, s32 pointIndex, f32 fraction, f32 distance);
122
134
135#if TGR_PLATFORM == TGR_PLATFORM_WIN
145#endif
146
147#ifdef __cplusplus
148}
149#endif
150
151#endif /* COASTLINE_RACERS_H */
const char * g_apszRaceProgressStrings[RACER_SLOTS]
The places of the race as text, "1st" to "20th".
int GetNetworkRaceOrderEntry(int nIndex)
Get an entry of the order of a network race.
void UpdateRaceProgress(RacerSlot *slot)
Count the gates and laps a racer crossed this frame, with its lap records and messages,...
TrackSection * g_pTrackRouteSection
The section and point of that point.
void FindTrackRoutePoint(TrackSection *section, f32 distance)
Find the point a distance along the route from the start of a section, counting the gates and laps on...
s32 g_dwTrackRouteLaps
The laps FindTrackRoutePoint() passed.
s32 g_dwTrackRoutePointIndex
The point index in g_pTrackRouteSection found by the last route walk.
void AdvanceAlongTrackRoute(TrackSection *section, s32 pointIndex, f32 fraction, f32 distance)
Move a distance along the route from a point of a section, into g_vTrackRoutePoint and the variables ...
s32 g_dwTrackRouteGates
The gates and laps FindTrackRoutePoint() passed.
Vec3f g_vTrackRoutePoint
The point the route walks last found.
#define RACER_SLOTS
The racers of a race.
Definition racerslot.h:11
A racer of a race.
Definition racerslot.h:28
A section of the route.
Definition track.h:38
A point or direction in space.
Definition vecmath.h:17
The track data a race loads below the program: its triangles and placed models, and the route the veh...
Integer and floating-point types of libultra.
float f32
Definition ultratypes.h:38
int s32
Definition ultratypes.h:25
The vector and matrix arithmetic of the game, its arctangent and power, the triangle and segment test...
The vehicles of a race, the cars they are, and their place on the track.