TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
raceinit.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RACE_ENG_CFG   "config/raceengine.xml"

Functions

void ReInit (void)
void ReShutdown (void)
void ReStartNewRace (void *)
void ReAddRacemanListButton (void *menuHandle)
int ReInitCars (void)
 Initialize the cars for a race.
int ReInitTrack (void)
 Initialize the current race-manager track.
void ReRaceCleanup (void)
void ReRaceCleanDrivers (void)
const char * ReGetCurrentRaceName (void)
const char * ReGetPrevRaceName (void)
void ReRunRaceOnConsole (const char *raceconfig)

Variables

tModList * ReRaceModList

Detailed Description

Author
Eric Espie
Version
$Id$

Definition in file raceinit.h.

Macro Definition Documentation

◆ RACE_ENG_CFG

#define RACE_ENG_CFG   "config/raceengine.xml"

Definition at line 29 of file raceinit.h.

Function Documentation

◆ ReAddRacemanListButton()

void ReAddRacemanListButton ( void * menuHandle)
extern

Definition at line 252 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReGetCurrentRaceName()

const char * ReGetCurrentRaceName ( void )
extern

Definition at line 939 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReGetPrevRaceName()

const char * ReGetPrevRaceName ( void )
extern

Definition at line 953 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReInit()

void ReInit ( void )
extern

Definition at line 60 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReInitCars()

int ReInitCars ( void )
extern

Initialize the cars for a race.

The car are positionned on the starting grid.

Returns
0 Ok -1 Error

Definition at line 553 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReInitTrack()

int ReInitTrack ( void )
extern

Initialize the current race-manager track.

The configured track is validated before the track loader is called. If the configured category/name pair no longer points to a readable track XML, an available fallback track is selected and written back to the race manager for interactive runs. Console runs keep the fallback in memory only.

Returns
0 ... Ok
-1 .. Error, no valid track could be selected or loaded

Definition at line 833 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReRaceCleanDrivers()

void ReRaceCleanDrivers ( void )
extern

Definition at line 906 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReRaceCleanup()

void ReRaceCleanup ( void )
extern

Definition at line 892 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReRunRaceOnConsole()

void ReRunRaceOnConsole ( const char * raceconfig)
extern

Definition at line 156 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReShutdown()

void ReShutdown ( void )
extern

Definition at line 104 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReStartNewRace()

void ReStartNewRace ( void * )
extern

Definition at line 128 of file raceinit.cpp.

Here is the call graph for this function:

Variable Documentation

◆ ReRaceModList

tModList* ReRaceModList
extern

Definition at line 50 of file raceinit.cpp.