00001
00002 #ifndef __CAR_WORLD_H_
00003 #define __CAR_WORLD_H_
00004
00005 #include "H_Standard.h"
00006 #include "CarWorldClasses.h"
00007 #include "CWCamera.h"
00008
00009
00010 #define DEFAULT_VEHICLE "data/Vehicles/truck.vhc"
00011 #define DEFAULT_LANDSCAPE "data/Landscape/landscape.txt"
00012
00013 #define EARTH_GRAVITY 9.8f
00014
00015
00016 #define INIT_TIME_INCREMENT 0.0001f
00017 #define MIN_TIME_CLICKS_SEC 40.0
00018
00019 class CarWorld
00020 {
00021 public:
00022 CarWorld(int TimeRefreshRate, const char *LandscapeFile);
00023 ~CarWorld();
00024 void add(CWFeature* AFeature);
00025 void add(CWVehicle* AVehicle);
00026 void next_camera();
00027 void DrawOnScreen();
00028
00029 void reset();
00030 void update(int ElapsedTimeMs);
00031 void draw_init();
00032 void draw();
00033
00034 public:
00035 CWLandscape *m_Landscape;
00036 CWCamera *m_Camera;
00037 private:
00038 CWBackground *m_Background;
00039
00040 list<CWFeature*> m_Features;
00041
00042
00043 int RealTime;
00044 int Frames;
00045 int NbTimeClicksPerFrame;
00046 REAL fps;
00047 int MyTimeRefreshRate;
00048 public:
00049 bool draw_console;
00050 bool draw_background;
00051 Point3D LightDirection;
00052 };
00053
00054 #endif //__CAR_WORLD_H_