TORCS  1.3.9
The Open Racing Car Simulator
raceinit.cpp File Reference


More...

#include <stdlib.h>
#include <stdio.h>
#include <tgfclient.h>
#include <raceman.h>
#include <robot.h>
#include <racescreens.h>
#include <robottools.h>
#include <portability.h>
#include <string>
#include <map>
#include <musicplayer/musicplayer.h>
#include "raceengine.h"
#include "racemain.h"
#include "racestate.h"
#include "racegl.h"
#include "raceresults.h"
#include "raceinit.h"
Include dependency graph for raceinit.cpp:

Go to the source code of this file.

Classes

struct  tMainMod
 

Functions

void ReInit (void)
 
void ReShutdown (void)
 
void ReStartNewRace (void *)
 
static void reSelectRaceman (void *params)
 
void ReRunRaceOnConsole (const char *raceconfig)
 
static void reRegisterRaceman (tFList *racemanCur)
 
static void reSortRacemanList (tFList **racemanList)
 
void ReAddRacemanListButton (void *menuHandle)
 
static void initStartingGrid (void)
 
static void initPits (void)
 
bool isItThisRobot (tRmInfo *reInfo, const char *path, tModInfo *modInfo)
 
int ReInitCars (void)
 Initialize the cars for a race. More...
 
static void reDumpTrack (tTrack *track, int verbose)
 Dump the track segments on screen. More...
 
int ReInitTrack (void)
 Initialize the track for a race manager. More...
 
void ReRaceCleanup (void)
 
void ReRaceCleanDrivers (void)
 
const char * ReGetCurrentRaceName (void)
 
const char * ReGetPrevRaceName (void)
 

Variables

static const char * level_str [] = { ROB_VAL_ROOKIE, ROB_VAL_AMATEUR, ROB_VAL_SEMI_PRO, ROB_VAL_PRO }
 
static tModListreEventModList = 0
 
tModListReRaceModList = 0
 

Detailed Description


Author
Eric Espie
Version
$Id$

Definition in file raceinit.cpp.

Function Documentation

◆ initPits()

static void initPits ( void  )
static

Definition at line 408 of file raceinit.cpp.

Here is the call graph for this function:

◆ initStartingGrid()

static void initStartingGrid ( void  )
static

Definition at line 311 of file raceinit.cpp.

Here is the call graph for this function:

◆ isItThisRobot()

bool isItThisRobot ( tRmInfo reInfo,
const char *  path,
tModInfo modInfo 
)

Definition at line 514 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReAddRacemanListButton()

void ReAddRacemanListButton ( void *  menuHandle)

Definition at line 255 of file raceinit.cpp.

Here is the call graph for this function:

◆ reDumpTrack()

static void reDumpTrack ( tTrack track,
int  verbose 
)
static

Dump the track segments on screen.

Parameters
tracktrack to dump
verboseif set to 1 all the segments are described (long)

Definition at line 742 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReGetCurrentRaceName()

const char* ReGetCurrentRaceName ( void  )

Definition at line 906 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReGetPrevRaceName()

const char* ReGetPrevRaceName ( void  )

Definition at line 920 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReInit()

void ReInit ( void  )

Definition at line 63 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReInitCars()

int ReInitCars ( void  )

Initialize the cars for a race.

The car are positionned on the starting grid.

Returns
0 Ok -1 Error

Definition at line 556 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReInitTrack()

int ReInitTrack ( void  )

Initialize the track for a race manager.

Returns
0 ... Ok
-1 .. Error

Definition at line 832 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReRaceCleanDrivers()

void ReRaceCleanDrivers ( void  )

Definition at line 873 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReRaceCleanup()

void ReRaceCleanup ( void  )

Definition at line 859 of file raceinit.cpp.

Here is the call graph for this function:

◆ reRegisterRaceman()

static void reRegisterRaceman ( tFList racemanCur)
static

Definition at line 208 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReRunRaceOnConsole()

void ReRunRaceOnConsole ( const char *  raceconfig)

Definition at line 159 of file raceinit.cpp.

Here is the call graph for this function:

◆ reSelectRaceman()

static void reSelectRaceman ( void *  params)
static

Definition at line 139 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReShutdown()

void ReShutdown ( void  )

Definition at line 107 of file raceinit.cpp.

Here is the call graph for this function:

◆ reSortRacemanList()

static void reSortRacemanList ( tFList **  racemanList)
static

Definition at line 220 of file raceinit.cpp.

Here is the call graph for this function:

◆ ReStartNewRace()

void ReStartNewRace ( void *  )

Definition at line 131 of file raceinit.cpp.

Here is the call graph for this function:

Variable Documentation

◆ level_str

const char* level_str[] = { ROB_VAL_ROOKIE, ROB_VAL_AMATEUR, ROB_VAL_SEMI_PRO, ROB_VAL_PRO }
static

Definition at line 50 of file raceinit.cpp.

◆ reEventModList

tModList* reEventModList = 0
static

Definition at line 52 of file raceinit.cpp.

◆ ReRaceModList

tModList* ReRaceModList = 0

Definition at line 53 of file raceinit.cpp.