TORCS
1.3.9
The Open Racing Car Simulator
atmosphere.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
3
file : atmosphere.cpp
4
created : Sun Feb 12 17:37:50 CET 2017
5
copyright : (C) 2017-2017 by Bernhard Wymann
6
email : berniw@bluewin.ch
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
20
#include "
sim.h
"
21
22
void
SimAtmosphereConfig
(
tCar
*car)
23
{
24
// Nothing for now
25
}
26
27
28
void
SimAtmosphereUpdate
(
tCar
*car,
tSituation
*s)
29
{
30
// TODO: get this later form the situation, weather simulation.
31
car->
localTemperature
= 273.15f + 20.0f;
32
car->
localPressure
= 101300.0f;
33
}
Situation
cars situation used to inform the GUI and the drivers
Definition:
raceman.h:85
tCar
Definition:
carstruct.h:35
SimAtmosphereUpdate
void SimAtmosphereUpdate(tCar *car, tSituation *s)
Definition:
atmosphere.cpp:28
tCar::localTemperature
tdble localTemperature
Definition:
carstruct.h:90
SimAtmosphereConfig
void SimAtmosphereConfig(tCar *car)
Definition:
atmosphere.cpp:22
tCar::localPressure
tdble localPressure
Definition:
carstruct.h:91
sim.h
src
modules
simu
simuv2
atmosphere.cpp
Generated by
1.8.14