00001 #ifndef CACARTYPE_H 00002 #define CACARTYPE_H 00003 00004 #include <ClanLib/core.h> 00005 #include <ClanLib/display.h> 00006 00010 struct CACarType { 00013 CACarType() { 00014 surface = 0; 00015 surface3d = 0; 00016 } 00017 00020 ~CACarType() { 00021 if( surface ) { 00022 delete surface; 00023 surface = 0; 00024 } 00025 if( surface3d ) { 00026 delete surface3d; 00027 surface3d = 0; 00028 } 00029 } 00030 00032 CL_String name; 00033 00035 CL_Surface* surface; 00037 CL_Surface* surface3d; 00038 00040 int length; 00042 int width; 00044 float radius; 00046 float angle; 00047 00049 float maxSpeed; 00051 float minSpeed; 00053 float maxTurbo; 00055 float acceleration; 00057 float deceleration; 00059 float steeringPower; 00061 float slidingFactor; 00062 00064 int price; 00065 }; 00066 00067 #endif 00068 00069 // EOF
1.5.0