coastline 0.0.4
Loading...
Searching...
No Matches
CarModel Struct Reference

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

Detailed Description

A car the players can choose.

Its fields join this structure as they are reconstructed.

Member Data Documentation

◆ name

const char* CarModel::name

The name of the car, in capitals.

◆ unreconstructed4

u8 CarModel::unreconstructed4[0x14 - 0x4]

Not read by the routines reconstructed so far.

◆ modelRom

u32 CarModel::modelRom

Where the compressed model of the car starts on the cartridge.

◆ modelRomEnd

u32 CarModel::modelRomEnd

Where the asset after the model starts on the cartridge, or 0 for a car without a model.

◆ modelSize

u32 CarModel::modelSize

The size of the model once decompressed, in bytes.

◆ dashboardRom

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).

◆ unreconstructed24

u8 CarModel::unreconstructed24[0x28 - 0x24]

Not read by the routines reconstructed so far.

◆ dashboardWidth

u8 CarModel::dashboardWidth

The width of the face of the dashboard, in texels.

◆ dashboardHeight

u8 CarModel::dashboardHeight

The height of the face of the dashboard, in texels.

◆ gearX

s8 CarModel::gearX

The x of the gear cell on the face, in pixels.

◆ gearY

s8 CarModel::gearY

The y of the gear cell on the face, in pixels.

◆ gearWidth

u8 CarModel::gearWidth

The width of the gear cell, in texels.

◆ gearHeight

u8 CarModel::gearHeight

The height of the gear cell, in texels.

◆ tachometer

u8 CarModel::tachometer

The TACHOMETER_ kind.

◆ needleX

u8 CarModel::needleX

The x on the face the needle turns about, in pixels.

◆ barSegments

u8 CarModel::barSegments

The segments of a bar, the last colors of the palette.

◆ [union]

union { ... } CarModel

The needle or the bar of the tachometer, by its kind.

◆ needleY

u8 CarModel::needleY

The y on the face the needle turns about, in pixels.

◆ needleFullAngle

f32 CarModel::needleFullAngle

The angle of the needle at 8000 revolutions a minute, in radians.

◆ needleRestAngle

f32 CarModel::needleRestAngle

The angle of the needle at rest, in radians.

◆ driveType

s32 CarModel::driveType

The wheels driven, as the index of their name.

◆ engineLayout

s32 CarModel::engineLayout

The layout of the engine, as the index of its name.

◆ acceleration

f32 CarModel::acceleration

The acceleration the car selection screen shows, a full bar at 500.

◆ maxSpeed

f32 CarModel::maxSpeed

The top speed the car selection screen shows, a full bar at 10.

◆ unreconstructed4C

u8 CarModel::unreconstructed4C[0x54 - 0x4C]

Not read by the routines reconstructed so far.

◆ gearCount

s32 CarModel::gearCount

The gears of the gearbox.

◆ shadowLength

f32 CarModel::shadowLength

The length of the shadow of the car on the stage of a menu.

◆ shadowHalfWidth

f32 CarModel::shadowHalfWidth

Half the width of the shadow of the car on the stage of a menu.


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