#include <Car.h>
Inheritance diagram for Vamos_Body::Car:


Public Member Functions | |
| int | get_controller () |
| void | set_controller (int newc) |
| Car (const Vamos_Geometry::Three_Vector &pos) | |
| virtual | ~Car () |
| virtual void | SetReflectionTexture (TEXTURE_HANDLE *reftid) |
| Rigid_Body & | chassis () |
| ! | |
| void | read (std::string data_dir="", std::string car_file="") |
| virtual void | engine_sound (std::string file, double volume, double throttle_volume_factor, double engine_speed_volume_factor, double pitch)=0 |
| virtual void | exterior_model (std::string file, double scale, const Vamos_Geometry::Three_Vector &translation, const Vamos_Geometry::Three_Vector &rotation)=0 |
| virtual void | interior_model (std::string file, double scale, const Vamos_Geometry::Three_Vector &translation, const Vamos_Geometry::Three_Vector &rotation)=0 |
| virtual void | dashboard (Dashboard *dash)=0 |
| virtual void | propagate (double time) |
| void | pan (double factor, double time=0.0) |
| void | steer (double angle, double time=0.0) |
| void | gas (double factor, double time=0.0) |
| void | brake (double factor, double time=0.0) |
| double | steer () |
| double | gas () |
| double | brake () |
| double | max_steer_angle () |
| void | handbrake (double factor, double time=0.0) |
| int | shift_down () |
| int | shift_up () |
| int | shift (int gear) |
| void | clutch (double factor, double time=0.0) |
| void | engage_clutch (double time) |
| void | disengage_clutch (double time) |
| void | start_engine () |
| void | brake_bias (double bias) |
| void | max_steer_angle (double degree_angle) |
| void | steer_exponent (double exponent) |
| void | steer_speed_sensitivity (double sensitivity) |
| void | shift_delay (double time) |
| void | clutch_time (double from_neutral, double others) |
| double | slide () const |
| Wheel * | wheel (int wheel_index) const |
| Particle * | front_particle () const |
| Engine * | engine () |
| Transmission * | transmission () |
| Fuel_Tank * | fuel_tank () |
| int | gear () const |
| int | last_gear () const |
| void | reset () |
| void | reset (const Vamos_Geometry::Three_Vector &position, const Vamos_Geometry::Three_Matrix &orientation) |
| double | distance_traveled () const |
| void | drivetrain (Drivetrain *drive) |
| void | view_position (const Vamos_Geometry::Three_Vector &driver_view) |
| void | field_of_view (double field) |
| virtual void | set_view (const Vamos_Geometry::Three_Vector &position, double field_of_view, double near_plane, double far_plane, double pan_angle) |
| virtual void | set_perspective (double aspect) |
| virtual void | add_rear_view (const Vamos_Geometry::Three_Vector &position, double width, double height, double direction, double field, double near_plane, double far_plane, std::string mask_file) |
| double | field_of_view () const |
| double | pan () const |
| Vamos_Geometry::Three_Vector | view_position () const |
| virtual TEXTURE_HANDLE * | shadow_texture () |
| virtual void | draw (bool transform) |
| virtual void | draw_interior () |
| virtual void | draw_rear_view (double aspect, int index) |
| virtual void | make_rear_view_mask (int window_width, int window_height) |
| virtual int | get_n_mirrors () const |
| virtual void | view (double pan, const Vamos_Geometry::Three_Vector &view_position) |
| virtual void | view (double pan) |
| virtual Vamos_Geometry::Sample * | engine_sound ()=0 |
| virtual double | engine_pitch () |
| virtual double | engine_volume () |
| virtual int | GetSoundSource () |
| virtual int | GetTireSoundSource (int i) |
| bool | fast_shift () const |
| void | show_dashboard_extras (bool show) |
| bool | collision (const Vamos_Geometry::Three_Vector &position) const |
| bool | ShiftPending () |
| void | GetState (Vamos_Geometry::Three_Vector &chassispos, Vamos_Geometry::Three_Matrix &chassisorientation, Vamos_Geometry::Three_Vector &chassisvel, Vamos_Geometry::Three_Vector &chassisangvel, double *suspdisp, double *suspcompvel, Vamos_Geometry::Three_Vector *whlangvel, int &gear, double &enginespeed, double &clutchspeed, double &enginedrag, double *tirespeed) |
| void | SetState (Vamos_Geometry::Three_Vector chassispos, Vamos_Geometry::Three_Matrix chassisorientation, Vamos_Geometry::Three_Vector chassisvel, Vamos_Geometry::Three_Vector chassisangvel, double *suspdisp, double *suspcompvel, Vamos_Geometry::Three_Vector *whlangvel, int gear, double enginespeed, double clutchspeed, double enginedrag, double *tirespeed) |
| virtual JOEMODEL * | GetCollisionModel () |
| void | SetSector (int newsector) |
| int | GetSector () |
| void | SetColPatch (int i, BEZIER *newcolpatch) |
| BEZIER * | GetColPatch (int i) |
| void | SetColParams (int i, double f1, double f2, double rr, double rd) |
Public Attributes | |
| Vamos_Geometry::Three_Vector | car_lastpos |
| float | brakesetting |
Protected Member Functions | |
| void | private_reset () |
Protected Attributes | |
| std::string | m_car_file |
| Rigid_Body | m_chassis |
| Drivetrain * | mp_drivetrain |
| Fuel_Tank * | mp_fuel_tank |
| double | m_front_brake_bias |
| double | m_max_steer_angle |
| double | m_steer_exponent |
| double | m_steer_speed_sensitivity |
| double | m_slide |
| bool | m_shift_pending |
| double | m_shift_timer |
| double | m_shift_delay |
| int | m_new_gear |
| int | m_last_gear |
| Key_Control | m_steer_key_control |
| Key_Control | m_gas_key_control |
| Key_Control | m_brake_key_control |
| Key_Control | m_handbrake_key_control |
| Key_Control | m_clutch_key_control |
| Key_Control | m_pan_key_control |
| Particle * | mp_front_particle |
| double | m_distance_traveled |
| Vamos_Geometry::Three_Vector | m_driver_view |
| double | m_field_of_view |
| double | m_pan_angle |
| bool | m_show_dashboard_extras |
| std::vector< Wheel * > | m_wheels |
| int | controller |
| int | m_sector |
| BEZIER * | m_colpatches [4] |
Private Member Functions | |
| bool | LoadCarDefinition (string carfile) |
| bool | LoadParts () |
| bool | LoadPart (string partfile) |
Private Attributes | |
| std::string | m_data_dir |
| Crash_Box | m_crash_box |
| CONFIGFILE | m_car_definition |
| std::vector< Vamos_Geometry::Two_Point > | m_tpoints |
Classes | |
| struct | Crash_Box |
Definition at line 114 of file Car.h.
|
|
Definition at line 156 of file Car.cc. References brakesetting, and controller. |
|
|
Definition at line 186 of file Car.cc. References m_wheels, mp_drivetrain, mp_fuel_tank, and verbose_output. |
|
||||||||||||||||||||||||||||||||||||
|
Reimplemented in Vamos_Body::Gl_Car. |
|
|
Definition at line 300 of file Car.h. References m_brake_key_control, and Vamos_Body::Key_Control::value(). |
|
||||||||||||
|
Definition at line 432 of file Car.cc. References m_brake_key_control, and Vamos_Body::Key_Control::target(). Referenced by VAMOSWORLD::DoOp(). |
|
|
Definition at line 515 of file Car.cc. References m_front_brake_bias. |
|
|
!
Definition at line 253 of file Car.h. References m_chassis. Referenced by Vamos_World::World::add_car(), Vamos_World::World::collide(), VAMOSWORLD::draw_shadows(), Vamos_World::World::gravity(), Vamos_World::World::interact(), and SelectCar(). |
|
||||||||||||
|
Definition at line 483 of file Car.cc. References m_clutch_key_control, and Vamos_Body::Key_Control::target(). Referenced by VAMOSWORLD::DoOp(). |
|
||||||||||||
|
|
|
|
Definition at line 574 of file Car.cc. References m_chassis, m_crash_box, Vamos_Body::Frame::transform_in(), and Vamos_Body::Car::Crash_Box::within(). Referenced by Vamos_World::World::collide(). |
|
|
Implemented in Vamos_Body::Gl_Car. |
|
|
Definition at line 499 of file Car.cc. References m_clutch_key_control, m_shift_delay, m_shift_timer, and Vamos_Body::Key_Control::target(). Referenced by VAMOSWORLD::DoOp(). |
|
|
Definition at line 382 of file Car.h. References m_distance_traveled. |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
||||||||||||
|
Reimplemented in Vamos_Body::Gl_Car. |
|
|
Definition at line 565 of file Car.cc. References mp_drivetrain. |
|
|
Definition at line 490 of file Car.cc. References m_clutch_key_control, m_shift_delay, m_shift_timer, and Vamos_Body::Key_Control::target(). Referenced by VAMOSWORLD::DoOp(). |
|
|
Definition at line 353 of file Car.h. References Vamos_Body::Drivetrain::engine(), and mp_drivetrain. Referenced by Vamos_Body::Gl_Car::draw_dashboard(), Vamos_Body::Gl_Car::draw_dashboard_extras(), Vamos_Body::Gl_Car::engine_pitch(), and Vamos_Body::Gl_Car::engine_volume(). |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
|
Implemented in Vamos_Body::Gl_Car. Referenced by LoadCarDefinition(). |
|
||||||||||||||||||||||||
|
Implemented in Vamos_Body::Gl_Car. |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
||||||||||||||||||||
|
Implemented in Vamos_Body::Gl_Car. |
|
|
Definition at line 444 of file Car.h. References m_shift_delay. |
|
|
Definition at line 408 of file Car.h. References m_field_of_view. Referenced by Vamos_Body::Gl_Car::make_rear_view_mask(). |
|
|
Definition at line 391 of file Car.h. References m_field_of_view. |
|
|
Definition at line 350 of file Car.h. References mp_front_particle. |
|
|
Definition at line 359 of file Car.h. References mp_fuel_tank. Referenced by Vamos_Body::Gl_Car::draw_dashboard(), VAMOSWORLD::DrawHUD(), and VAMOSWORLD::FuelPlayerCar(). |
|
|
Definition at line 297 of file Car.h. References m_gas_key_control, and Vamos_Body::Key_Control::value(). Referenced by propagate(). |
|
||||||||||||
|
Definition at line 425 of file Car.cc. References m_gas_key_control, and Vamos_Body::Key_Control::target(). Referenced by VAMOSWORLD::DoOp(). |
|
|
Definition at line 364 of file Car.h. References m_new_gear. Referenced by Vamos_Body::Gl_Car::draw_dashboard(), and Vamos_Body::Gl_Car::draw_dashboard_extras(). |
|
|
Definition at line 239 of file Car.h. References controller. |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
|
Reimplemented in Vamos_Body::Gl_Car. Definition at line 482 of file Car.h. References NULL. Referenced by Vamos_World::World::interact(). |
|
|
Definition at line 487 of file Car.h. References m_colpatches, and NULL. |
|
|
Definition at line 485 of file Car.h. References m_sector. |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 1602 of file Car.cc. References Vamos_Body::Frame::ang_velocity(), Vamos_Body::Rigid_Body::cm_velocity(), m_chassis, m_wheels, Vamos_Body::Frame::orientation(), and Vamos_Body::Rigid_Body::position(). |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
||||||||||||
|
Definition at line 439 of file Car.cc. References m_handbrake_key_control, and Vamos_Body::Key_Control::target(). Referenced by VAMOSWORLD::DoOp(). |
|
||||||||||||||||||||
|
Implemented in Vamos_Body::Gl_Car. |
|
|
Definition at line 367 of file Car.h. References m_last_gear. Referenced by VAMOSWORLD::DoOp(). |
|
|
|
Definition at line 2618 of file Car.cc. References SETTINGS::GetFullDataPath(), CONFIGVARIABLE::GetFullName(), CONFIGFILE::GetHead(), CONFIGFILE::GetParam(), m_car_definition, CONFIGVARIABLE::next, NULL, CONFIGFILE::SetParam(), and settings. Referenced by LoadParts(). |
|
|
Definition at line 2592 of file Car.cc. References CONFIGFILE::GetParam(), LoadPart(), m_car_definition, and CONFIGFILE::SuppressError(). Referenced by LoadCarDefinition(). |
|
||||||||||||
|
Reimplemented in Vamos_Body::Gl_Car. |
|
|
Definition at line 326 of file Car.h. References m_max_steer_angle. |
|
|
Definition at line 303 of file Car.h. References m_max_steer_angle. Referenced by LoadCarDefinition(). |
|
|
Definition at line 411 of file Car.h. References m_pan_key_control, and Vamos_Body::Key_Control::value(). |
|
||||||||||||
|
Definition at line 446 of file Car.cc. References m_pan_angle, m_pan_key_control, and Vamos_Body::Key_Control::target(). |
|
|
Definition at line 557 of file Car.cc. References mp_drivetrain, Vamos_Body::Drivetrain::reset(), shift(), and start_engine(). Referenced by reset(). |
|
|
||||||||||||
|
Definition at line 205 of file Car.cc. References m_car_file, m_data_dir, and m_wheels. Referenced by VGUI::SpinningCar::LoadCar(), and SelectCar(). |
|
||||||||||||
|
Definition at line 541 of file Car.cc. References m_chassis, private_reset(), and Vamos_Body::Rigid_Body::reset(). |
|
|
Definition at line 549 of file Car.cc. References m_chassis, private_reset(), and Vamos_Body::Rigid_Body::reset(). Referenced by Vamos_World::Car_Information::reset(). |
|
|
Definition at line 240 of file Car.h. References controller. Referenced by SelectCar(). |
|
|
Reimplemented in Vamos_Body::Gl_Car. |
|
||||||||||||||||||||||||
|
Reimplemented in Vamos_Body::Gl_Car. Definition at line 393 of file Car.h. Referenced by LoadCarDefinition(). |
|
||||||||||||||||||||||||
|
Definition at line 2659 of file Car.cc. References Vamos_Body::Wheel::SetColParams(), and wheel(). |
|
||||||||||||
|
Definition at line 486 of file Car.h. References m_colpatches. |