|
coastline 0.0.4
|
The racers of a race: their progress through the gates and laps, their places, and the sharing of the computer's vehicles among them. More...
#include <PR/ultratypes.h>#include "common/track.h"#include "common/vecmath.h"#include "common/vehicle.h"

Go to the source code of this file.
Functions | |
| 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 the way, into g_vTrackRoutePoint and the variables beside it. | |
| 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 beside it. | |
| void | UpdateRaceProgress (RacerSlot *slot) |
| Count the gates and laps a racer crossed this frame, with its lap records and messages, and the time an arcade checkpoint adds. | |
| int | GetNetworkRaceOrderEntry (int nIndex) |
| Get an entry of the order of a network race. | |
Variables | |
| Vec3f | g_vTrackRoutePoint |
| The point the route walks last found. | |
| TrackSection * | g_pTrackRouteSection |
| The section and point of that point. | |
| s32 | g_dwTrackRoutePointIndex |
| The point index in g_pTrackRouteSection found by the last route walk. | |
| s32 | g_dwTrackRouteGates |
| The gates and laps FindTrackRoutePoint() passed. | |
| s32 | g_dwTrackRouteLaps |
| The laps FindTrackRoutePoint() passed. | |
| const char * | g_apszRaceProgressStrings [RACER_SLOTS] |
| The places of the race as text, "1st" to "20th". | |
The racers of a race: their progress through the gates and laps, their places, and the sharing of the computer's vehicles among them.
A racer far from the players has no vehicle and moves along the route by itself.
| 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 the way, into g_vTrackRoutePoint and the variables beside it.
| section | The section to start from. |
| distance | The distance along the route. |
| 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 beside it.
| section | The section. |
| pointIndex | The point of the section to start from. |
| fraction | The share of the segment after the point still ahead. |
| distance | The distance to move. |
| void UpdateRaceProgress | ( | RacerSlot * | slot | ) |
Count the gates and laps a racer crossed this frame, with its lap records and messages, and the time an arcade checkpoint adds.
| slot | The racer. |
| int GetNetworkRaceOrderEntry | ( | int | nIndex | ) |
Get an entry of the order of a network race.
| nIndex | The index of the entry. |
|
extern |
The point the route walks last found.
|
extern |
The section and point of that point.
|
extern |
The point index in g_pTrackRouteSection found by the last route walk.
|
extern |
The gates and laps FindTrackRoutePoint() passed.
|
extern |
The laps FindTrackRoutePoint() passed.
|
extern |
The places of the race as text, "1st" to "20th".