![]() |
NDEVR
API Documentation
|
A read-only accessor for a single vehicle record within a VehicleDatabase, providing make, model, year, weight, dimensions, and associated 3D model file. More...
Public Member Functions | |
| VehicleRecord (uint04 index, const VehicleDatabase *database) | |
| Constructs a record accessor for the given index in a database. | |
| const fltp08 & | curbWeight () const |
| Returns the vehicle curb weight. | |
| const Vector< 3, fltp08 > | dimensions () const |
| Returns the vehicle overall dimensions (length, width, height). | |
| const String & | make () const |
| Returns the vehicle manufacturer name. | |
| const String & | model () const |
| Returns the vehicle model name. | |
| File | modelFile () const |
| Returns the file path to the associated 3D model. | |
| const uint04 & | year () const |
| Returns the vehicle model year. | |
Protected Attributes | |
| const VehicleDatabase *const | m_database |
| The owning database providing field data. | |
| const uint04 | m_index |
| Index of this record within the database buffers. | |
A read-only accessor for a single vehicle record within a VehicleDatabase, providing make, model, year, weight, dimensions, and associated 3D model file.
Definition at line 14 of file VehicleDatabase.h.
| VehicleRecord::VehicleRecord | ( | uint04 | index, |
| const VehicleDatabase * | database ) |
Constructs a record accessor for the given index in a database.
| [in] | index | The zero-based record index. |
| [in] | database | The owning database. |
| const fltp08 & VehicleRecord::curbWeight | ( | ) | const |
Returns the vehicle curb weight.
Returns the vehicle overall dimensions (length, width, height).
| const String & VehicleRecord::make | ( | ) | const |
Returns the vehicle manufacturer name.
| const String & VehicleRecord::model | ( | ) | const |
Returns the vehicle model name.
| File VehicleRecord::modelFile | ( | ) | const |
Returns the file path to the associated 3D model.
| const uint04 & VehicleRecord::year | ( | ) | const |
Returns the vehicle model year.