TORCS  1.3.10
The Open Racing Car Simulator
Loading...
Searching...
No Matches
simu.h
Go to the documentation of this file.
1/***************************************************************************
2
3 file : simu.h
4 created : Sun Jan 30 12:02:05 CET 2000
5 copyright : (C) 2000-2017 by Eric Espie, Bernhard Wymann
6 email : torcs@free.fr
7 version : $Id$
8
9 ***************************************************************************/
10
11/***************************************************************************
12 * *
13 * This program is free software; you can redistribute it and/or modify *
14 * it under the terms of the GNU General Public License as published by *
15 * the Free Software Foundation; either version 2 of the License, or *
16 * (at your option) any later version. *
17 * *
18 ***************************************************************************/
19
26
33
34#ifndef _SIMUV1_H_
35#define _SIMUV1_H_
36
37#include <track.h>
38#include <raceman.h>
39
40#define SIM_IDENT 0
41
42struct Situation;
43struct RmInfo;
44
53typedef void (*tfSimInit)(int nbCars, tTrack* track, tdble fuelFactor, tdble damageFactor, tdble tireFactor);
54
60typedef void (*tfSimConfig)(tCarElt* carElt, struct RmInfo* reInfo);
61
66typedef void (*tfSimReConfig)(tCarElt* carElt);
67
74typedef void (*tfSimUpdate)(struct Situation* s, double deltaTime, int telemetry);
75
79typedef void (*tfSimShutdown)(void);
80
92
93
94
95#endif /* _SIMUV1_H_ */
96
97
98
struct CarElt tCarElt
Car structure (tCarElt).
float tdble
Floating point type used in TORCS.
Definition tgf.h:47
void(* tfSimShutdown)(void)
Callback function prototype for simulation module shutdown.
Definition simu.h:79
void(* tfSimUpdate)(struct Situation *s, double deltaTime, int telemetry)
Callback function prototype for progressing the given Situation by a given simulation time step.
Definition simu.h:74
void(* tfSimReConfig)(tCarElt *carElt)
Callback function prototype for simulation reconfiguration of a given car (refueling,...
Definition simu.h:66
void(* tfSimInit)(int nbCars, tTrack *track, tdble fuelFactor, tdble damageFactor, tdble tireFactor)
Callback function prototype for simulation module initialization (bring up module and hand over track...
Definition simu.h:53
void(* tfSimConfig)(tCarElt *carElt, struct RmInfo *reInfo)
Callback function prototype for simulation configuration of a given car.
Definition simu.h:60
This is the race information structures.
Race Manager General Info.
Definition raceman.h:220
cars situation used to inform the GUI and the drivers
Definition raceman.h:84
double deltaTime
Legacy rbDrive delta for existing robot modules; normal robots use this value.
Definition raceman.h:86
Interface Structure for Simulation.
Definition simu.h:85
tfSimReConfig reconfig
Definition simu.h:88
tfSimShutdown shutdown
Definition simu.h:90
tfSimInit init
Definition simu.h:86
tfSimUpdate update
Definition simu.h:89
tfSimConfig config
Definition simu.h:87
Track structure.
Definition track.h:533
int telemetry(tModInfo *modInfo)
Track Structure and Track Loader Module Definition.
int track(tModInfo *modInfo)
Definition trackitf.cpp:85