Revision: 2742
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=2742&view=rev
Author: ulteq
Date: 2012-05-28 19:08:05 +0000 (Mon, 28 May 2012)
Log Message:
-----------
added setBrake() method
Modified Paths:
--------------
trunk/source/main/gameplay/BeamEngine.cpp
trunk/source/main/gameplay/BeamEngine.h
Modified: trunk/source/main/gameplay/BeamEngine.cpp
===================================================================
--- trunk/source/main/gameplay/BeamEngine.cpp 2012-05-28 18:55:44 UTC (rev
2741)
+++ trunk/source/main/gameplay/BeamEngine.cpp 2012-05-28 19:08:05 UTC (rev
2742)
@@ -440,6 +440,11 @@
curAcc = val * 0.94f + 0.06f;
}
+void BeamEngine::setBrake(float val)
+{
+ curBrake = val;
+}
+
float BeamEngine::getTurboPSI()
{
return curTurboRPM / 10000.0f;
Modified: trunk/source/main/gameplay/BeamEngine.h
===================================================================
--- trunk/source/main/gameplay/BeamEngine.h 2012-05-28 18:55:44 UTC (rev
2741)
+++ trunk/source/main/gameplay/BeamEngine.h 2012-05-28 19:08:05 UTC (rev
2742)
@@ -45,6 +45,7 @@
void setAcc(float val);
void setAutoMode(int mode);
+ void setBrake(float val);
void setClutch(float clutch);
void setOptions(float einertia, char etype, float eclutch, float ctime,
float stime, float pstime);
void setRPM(float rpm);
@@ -117,6 +118,7 @@
char type;
float brakingTorque;
float curAcc;
+ float curBrake;
float curEngineRPM;
float engineTorque;
float hydropump;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel