IVehicleComponent

Interface used to define different areas

C++
struct IVehicleComponent {
};
File

IVehicleSystem.h

Description

The most important use for the vehicle components is to define different region on the vehicle which have specific uses. A good example would be to have components on the vehicles which react to hit damage in different ways.

IVehicleComponent::~IVehicleComponent Destructor
C++
virtual ~IVehicleComponent();
IVehicleComponent::GetBounds Method

Get bounding box in vehicle space

C++
virtual const AABB& GetBounds() = 0;
IVehicleComponent::GetComponentName Method

Gets the name of the component

C++
virtual const char* GetComponentName() const = 0;
Returns

A c style string with the name of the component.

IVehicleComponent::GetDamageRatio Method

Get current damage ratio

C++
virtual float GetDamageRatio() const = 0;
IVehicleComponent::GetMaxDamage Method

Get max damage

C++
virtual float GetMaxDamage() const = 0;
IVehicleComponent::GetMemoryUsage Method
C++
virtual void GetMemoryUsage(ICrySizer * s) const = 0;
IVehicleComponent::GetPart Method
C++
virtual IVehiclePart* GetPart(unsigned int index) const = 0;
IVehicleComponent::GetPartCount Method

Gets the number of vehicle parts which are linked to the vehicle

C++
virtual unsigned int GetPartCount() const = 0;
Returns

The number of parts

See Also
IVehicleComponent::SetDamageRatio Method

Set current damage ratio

C++
virtual void SetDamageRatio(float ratio) = 0;