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

Pit menu. More...

#include <stdlib.h>
#include <tgfclient.h>
#include <car.h>
#include <portability.h>
#include <racescreens.h>
Include dependency graph for pitmenu.cpp:

Go to the source code of this file.

Functions

static void rmUpdtFuel (void *)
 
static void rmUpdtRepair (void *)
 
static void rmStopAndGo (void *)
 
static void rmRepair (void *)
 
static void changeTireState (void *vp)
 
void RmPitMenuStart (tCarElt *car, tRmInfo *reInfo, void *userdata, tfuiCallback callback)
 Pit menu. More...
 

Variables

static void * menuHandle = NULL
 
static int fuelId
 
static int repairId
 
static tCarEltrmCar
 
static tRmInformInfo
 
static int tireChangeId
 
static float LabelColor [] = {1.0, 0.0, 1.0, 1.0}
 
static const char * tireChangeLabel []
 
static const tCarPitCmd::TireChange tireChangeList []
 
static const int nbtireChangeOptions = sizeof(tireChangeLabel) / sizeof(tireChangeLabel[0])
 
static int currentTireChangeOption = 0
 
static tfuiCallback rmCallback
 
static void * rmUserData
 

Detailed Description

Pit menu.

Author
Bernhard Wymann, Eric Espie
Version
$Id$

Definition in file pitmenu.cpp.

Function Documentation

◆ changeTireState()

static void changeTireState ( void *  vp)
static

Definition at line 100 of file pitmenu.cpp.

Here is the call graph for this function:

◆ rmRepair()

static void rmRepair ( void *  )
static

Definition at line 93 of file pitmenu.cpp.

◆ rmStopAndGo()

static void rmStopAndGo ( void *  )
static

Definition at line 86 of file pitmenu.cpp.

◆ rmUpdtFuel()

static void rmUpdtFuel ( void *  )
static

Definition at line 56 of file pitmenu.cpp.

Here is the call graph for this function:

◆ rmUpdtRepair()

static void rmUpdtRepair ( void *  )
static

Definition at line 69 of file pitmenu.cpp.

Here is the call graph for this function:

Variable Documentation

◆ currentTireChangeOption

int currentTireChangeOption = 0
static

Definition at line 54 of file pitmenu.cpp.

◆ fuelId

int fuelId
static

Definition at line 36 of file pitmenu.cpp.

◆ LabelColor

float LabelColor[] = {1.0, 0.0, 1.0, 1.0}
static

Definition at line 42 of file pitmenu.cpp.

◆ menuHandle

void* menuHandle = NULL
static

Definition at line 35 of file pitmenu.cpp.

◆ nbtireChangeOptions

const int nbtireChangeOptions = sizeof(tireChangeLabel) / sizeof(tireChangeLabel[0])
static

Definition at line 53 of file pitmenu.cpp.

◆ repairId

int repairId
static

Definition at line 37 of file pitmenu.cpp.

◆ rmCallback

tfuiCallback rmCallback
static

Definition at line 82 of file pitmenu.cpp.

◆ rmCar

tCarElt* rmCar
static

Definition at line 38 of file pitmenu.cpp.

◆ rmInfo

tRmInfo* rmInfo
static

Definition at line 39 of file pitmenu.cpp.

◆ rmUserData

void* rmUserData
static

Definition at line 83 of file pitmenu.cpp.

◆ tireChangeId

int tireChangeId
static

Definition at line 40 of file pitmenu.cpp.

◆ tireChangeLabel

const char* tireChangeLabel[]
static
Initial value:
= {
"All",
"None"
}

Definition at line 45 of file pitmenu.cpp.

◆ tireChangeList

const tCarPitCmd::TireChange tireChangeList[]
static
Initial value:

Definition at line 49 of file pitmenu.cpp.