TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
driverselect.cpp File Reference

Driver selection screen. More...

#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <tgfclient.h>
#include <track.h>
#include <car.h>
#include <raceman.h>
#include <robot.h>
#include <racescreens.h>
#include <portability.h>
Include dependency graph for driverselect.cpp:

Go to the source code of this file.

Classes

struct  DrvElt

Macros

#define B_BASE   380
#define B_HT   30

Typedefs

typedef struct DrvElt tDrvElt

Functions

 GF_TAILQ_HEAD (DrvListHead, tDrvElt)
static void rmFreeDrvList (void)
static void rmdsUpdateAcceptTip (void)
static void rmdsUpdateAcceptState (void)
static void rmdsAcceptFocus (void)
static void rmdsAcceptFocusLost (void)
static void rmdsActivate (void)
static void rmdsDeactivate (void *screen)
static void rmdsSetFocus (void)
static void rmdsSelect (void)
static void rmMove (int delta)
static void rmdsClickOnDriver (void)
static void rmSelectDeselect (void)
static void rmdsAddKeys (void)
void RmDriversSelect (void *vs)
 Drivers list selection, the race manager parameter set is handed over in vs, tRmDrvSelect.param.

Variables

static void * scrHandle
static tRmDrvSelect * ds
static int selectedScrollList
static int unselectedScrollList
static int FocDrvLabelId
static int PickDrvNameLabelId
static int PickDrvCarLabelId
static int PickDrvCategoryLabelId
static int AcceptButtonId
static int AcceptTipLabelId
static int AcceptDisabledTipLabelId
static float aColor [] = { 1.0, 0.0, 0.0, 1.0 }
static int nbSelectedDrivers
static int nbMaxSelectedDrivers
static const char * NoDriverSelectedMessage = "Select at least one driver before accepting"
static const char * AcceptTipMessage = "Accept Selection"
tDrvListHead DrvList

Detailed Description

Driver selection screen.

Author
Bernhard Wymann, Eric Espie

Definition in file driverselect.cpp.

Macro Definition Documentation

◆ B_BASE

#define B_BASE   380

◆ B_HT

#define B_HT   30

Typedef Documentation

◆ tDrvElt

typedef struct DrvElt tDrvElt

Function Documentation

◆ GF_TAILQ_HEAD()

GF_TAILQ_HEAD ( DrvListHead ,
tDrvElt  )

◆ rmdsAcceptFocus()

void rmdsAcceptFocus ( void )
static

Definition at line 107 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsAcceptFocusLost()

void rmdsAcceptFocusLost ( void )
static

Definition at line 113 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsActivate()

void rmdsActivate ( void )
static

Definition at line 119 of file driverselect.cpp.

◆ rmdsAddKeys()

void rmdsAddKeys ( void )
static

Definition at line 287 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsClickOnDriver()

void rmdsClickOnDriver ( void )
static

Definition at line 187 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsDeactivate()

void rmdsDeactivate ( void * screen)
static

Definition at line 125 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsSelect()

void rmdsSelect ( void )
static

Definition at line 150 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsSetFocus()

void rmdsSetFocus ( void )
static

Definition at line 136 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsUpdateAcceptState()

void rmdsUpdateAcceptState ( void )
static

Definition at line 95 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmdsUpdateAcceptTip()

void rmdsUpdateAcceptTip ( void )
static

Definition at line 73 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmFreeDrvList()

void rmFreeDrvList ( void )
static

Definition at line 516 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmMove()

void rmMove ( int delta)
static

Definition at line 180 of file driverselect.cpp.

Here is the call graph for this function:

◆ rmSelectDeselect()

void rmSelectDeselect ( void )
static

Definition at line 220 of file driverselect.cpp.

Here is the call graph for this function:

Variable Documentation

◆ AcceptButtonId

int AcceptButtonId
static

Definition at line 46 of file driverselect.cpp.

◆ AcceptDisabledTipLabelId

int AcceptDisabledTipLabelId
static

Definition at line 48 of file driverselect.cpp.

◆ AcceptTipLabelId

int AcceptTipLabelId
static

Definition at line 47 of file driverselect.cpp.

◆ AcceptTipMessage

const char* AcceptTipMessage = "Accept Selection"
static

Definition at line 53 of file driverselect.cpp.

◆ aColor

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

Definition at line 49 of file driverselect.cpp.

◆ DrvList

tDrvListHead DrvList

Definition at line 68 of file driverselect.cpp.

◆ ds

tRmDrvSelect* ds
static

Definition at line 40 of file driverselect.cpp.

◆ FocDrvLabelId

int FocDrvLabelId
static

Definition at line 42 of file driverselect.cpp.

◆ nbMaxSelectedDrivers

int nbMaxSelectedDrivers
static

Definition at line 51 of file driverselect.cpp.

◆ nbSelectedDrivers

int nbSelectedDrivers
static

Definition at line 50 of file driverselect.cpp.

◆ NoDriverSelectedMessage

const char* NoDriverSelectedMessage = "Select at least one driver before accepting"
static

Definition at line 52 of file driverselect.cpp.

◆ PickDrvCarLabelId

int PickDrvCarLabelId
static

Definition at line 44 of file driverselect.cpp.

◆ PickDrvCategoryLabelId

int PickDrvCategoryLabelId
static

Definition at line 45 of file driverselect.cpp.

◆ PickDrvNameLabelId

int PickDrvNameLabelId
static

Definition at line 43 of file driverselect.cpp.

◆ scrHandle

void* scrHandle
static

Definition at line 39 of file driverselect.cpp.

◆ selectedScrollList

int selectedScrollList
static

Definition at line 41 of file driverselect.cpp.

◆ unselectedScrollList

int unselectedScrollList
static

Definition at line 41 of file driverselect.cpp.