CrystalSpace

Public API Reference

CS::Physics::iVehicleFactory Struct Reference

A factory to create instances of iVehicle. More...

#include <ivaria/vehicle.h>

Inheritance diagram for CS::Physics::iVehicleFactory:

List of all members.

Public Member Functions

virtual void AddWheelFactory (iVehicleWheelFactory *factory)=0
 Add a new wheel to this vehicle.
virtual iVehicleBrakeCreateBrake ()=0
 Create a new brake, and add it to the list of brakes for this vehicle.
virtual iVehicleSteeringDeviceCreateSteeringDevice ()=0
 Create a new steering device, and add it to the list of devices for this vehicle.
virtual csPtr< iVehicleCreateVehicle (CS::Physics::iPhysicalSector *sector)=0
 Create a new vehicle.
virtual iVehicleWheelFactoryGetWheelFactory (size_t index)=0
 Get the wheel factory of the given index.
virtual size_t GetWheelFactoryCount ()=0
 Get the total number of wheel factories in this vehicle.

Detailed Description

A factory to create instances of iVehicle.

Definition at line 289 of file vehicle.h.


Member Function Documentation

virtual void CS::Physics::iVehicleFactory::AddWheelFactory ( iVehicleWheelFactory factory  )  [pure virtual]

Add a new wheel to this vehicle.

virtual iVehicleBrake* CS::Physics::iVehicleFactory::CreateBrake (  )  [pure virtual]

Create a new brake, and add it to the list of brakes for this vehicle.

virtual iVehicleSteeringDevice* CS::Physics::iVehicleFactory::CreateSteeringDevice (  )  [pure virtual]

Create a new steering device, and add it to the list of devices for this vehicle.

virtual csPtr<iVehicle> CS::Physics::iVehicleFactory::CreateVehicle ( CS::Physics::iPhysicalSector sector  )  [pure virtual]

Create a new vehicle.

Todo:
Remove the sector parameter and allow vehicles to switch sectors
virtual iVehicleWheelFactory* CS::Physics::iVehicleFactory::GetWheelFactory ( size_t  index  )  [pure virtual]

Get the wheel factory of the given index.

virtual size_t CS::Physics::iVehicleFactory::GetWheelFactoryCount (  )  [pure virtual]

Get the total number of wheel factories in this vehicle.


The documentation for this struct was generated from the following file:

Generated for Crystal Space 2.1 by doxygen 1.6.1