TORCS  1.3.9
The Open Racing Car Simulator
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 
34 #ifndef _SIMUV1_H_
35 #define _SIMUV1_H_
36 
37 #include <track.h>
38 #include <raceman.h>
39 
40 #define SIM_IDENT 0
41 
42 struct Situation;
43 struct RmInfo;
44 
53 typedef void (*tfSimInit)(int nbCars, tTrack* track, tdble fuelFactor, tdble damageFactor, tdble tireFactor);
54 
60 typedef void (*tfSimConfig)(tCarElt* carElt, struct RmInfo* reInfo);
61 
66 typedef void (*tfSimReConfig)(tCarElt* carElt);
67 
74 typedef void (*tfSimUpdate)(struct Situation* s, double deltaTime, int telemetry);
75 
79 typedef void (*tfSimShutdown)(void);
80 
84 typedef struct
85 {
91 } tSimItf;
92 
93 
94 
95 #endif /* _SIMUV1_H_ */
96 
97 
98 
Race Manager General Info.
Definition: raceman.h:218
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
cars situation used to inform the GUI and the drivers
Definition: raceman.h:85
Car structure (tCarElt).
Definition: car.h:455
int telemetry(tModInfo *modInfo)
Track structure.
Definition: track.h:502
void(* tfSimConfig)(tCarElt *carElt, struct RmInfo *reInfo)
Callback function prototype for simulation configuration of a given car.
Definition: simu.h:60
float tdble
Floating point type used in TORCS.
Definition: tgf.h:48
tfSimInit init
Definition: simu.h:86
tfSimReConfig reconfig
Definition: simu.h:88
This is the race information structures.
tfSimShutdown shutdown
Definition: simu.h:90
void(* tfSimReConfig)(tCarElt *carElt)
Callback function prototype for simulation reconfiguration of a given car (refueling, setup adjustments)
Definition: simu.h:66
void(* tfSimShutdown)(void)
Callback function prototype for simulation module shutdown.
Definition: simu.h:79
int track(tModInfo *modInfo)
Definition: trackitf.cpp:85
Interface Structure for Simulation.
Definition: simu.h:84
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
tfSimUpdate update
Definition: simu.h:89
Track Structure and Track Loader Module Definition.
tfSimConfig config
Definition: simu.h:87
double deltaTime
Definition: raceman.h:87