00001
00002 #ifndef __TACHO_H_
00003 #define __TACHO_H_
00004
00005 namespace std {}
00006 using namespace std;
00007
00008 #include "H_Graphics.h"
00009
00010 class Tacho
00011 {
00012 public:
00013 Tacho();
00014 Tacho(REAL RedLine);
00015 ~Tacho();
00016 void draw(REAL Revs);
00017 private:
00018 int CompiledList;
00019 REAL MyRedLine;
00020 };
00021
00022 class DriveTrain
00023 {
00024 public:
00025
00026
00027
00028 DriveTrain();
00029 DriveTrain(REAL Redline, REAL MaxTorque);
00030 REAL GetTorque(REAL Gas, REAL WheelRevs);
00031 void drawInfo(REAL tmp);
00032 private:
00033 REAL GetRevs();
00034 int MyNbGears;
00035 REAL *MyGearRatios;
00036 REAL MyPower;
00037 REAL MyRedline;
00038 Tacho MyTacho;
00039 REAL MyMaxTorque;
00040 };
00041
00042 #endif //__TACHO_H_