|
coastline 0.0.4
|
A car the players can choose. More...
#include <vehicle.h>
Public Attributes | |
| const char * | name |
| u8 | unreconstructed4 [0x14 - 0x4] |
| u32 | modelRom |
| u32 | modelRomEnd |
| u32 | modelSize |
| u32 | dashboardRom |
| u8 | unreconstructed24 [0x28 - 0x24] |
| u8 | dashboardWidth |
| u8 | dashboardHeight |
| s8 | gearX |
| s8 | gearY |
| u8 | gearWidth |
| u8 | gearHeight |
| u8 | tachometer |
| union { | |
| u8 needleX | |
| u8 barSegments | |
| }; | |
| u8 | needleY |
| f32 | needleFullAngle |
| f32 | needleRestAngle |
| s32 | driveType |
| s32 | engineLayout |
| f32 | acceleration |
| f32 | maxSpeed |
| u8 | unreconstructed4C [0x54 - 0x4C] |
| s32 | gearCount |
| f32 | shadowLength |
| f32 | shadowHalfWidth |
A car the players can choose.
Its fields join this structure as they are reconstructed.
| const char* CarModel::name |
The name of the car, in capitals.
| u8 CarModel::unreconstructed4[0x14 - 0x4] |
Not read by the routines reconstructed so far.
| u32 CarModel::modelRom |
Where the compressed model of the car starts on the cartridge.
| u32 CarModel::modelRomEnd |
Where the asset after the model starts on the cartridge, or 0 for a car without a model.
| u32 CarModel::modelSize |
The size of the model once decompressed, in bytes.
| u32 CarModel::dashboardRom |
Where the dashboard starts on the cartridge (the palettes of day and night, 256 colors each, the face, and a cell for each gear, reverse first).
| u8 CarModel::unreconstructed24[0x28 - 0x24] |
Not read by the routines reconstructed so far.
| u8 CarModel::dashboardWidth |
The width of the face of the dashboard, in texels.
| u8 CarModel::dashboardHeight |
The height of the face of the dashboard, in texels.
| s8 CarModel::gearX |
The x of the gear cell on the face, in pixels.
| s8 CarModel::gearY |
The y of the gear cell on the face, in pixels.
| u8 CarModel::gearWidth |
The width of the gear cell, in texels.
| u8 CarModel::gearHeight |
The height of the gear cell, in texels.
| u8 CarModel::tachometer |
The TACHOMETER_ kind.
| u8 CarModel::needleX |
The x on the face the needle turns about, in pixels.
| u8 CarModel::barSegments |
The segments of a bar, the last colors of the palette.
| union { ... } CarModel |
The needle or the bar of the tachometer, by its kind.
| u8 CarModel::needleY |
The y on the face the needle turns about, in pixels.
| f32 CarModel::needleFullAngle |
The angle of the needle at 8000 revolutions a minute, in radians.
| f32 CarModel::needleRestAngle |
The angle of the needle at rest, in radians.
| s32 CarModel::driveType |
The wheels driven, as the index of their name.
| s32 CarModel::engineLayout |
The layout of the engine, as the index of its name.
| f32 CarModel::acceleration |
The acceleration the car selection screen shows, a full bar at 500.
| f32 CarModel::maxSpeed |
The top speed the car selection screen shows, a full bar at 10.
| u8 CarModel::unreconstructed4C[0x54 - 0x4C] |
Not read by the routines reconstructed so far.
| s32 CarModel::gearCount |
The gears of the gearbox.
| f32 CarModel::shadowLength |
The length of the shadow of the car on the stage of a menu.
| f32 CarModel::shadowHalfWidth |
Half the width of the shadow of the car on the stage of a menu.