GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
|
Represents a car entity. More...
Public Member Functions | |
MCarParameter () | |
Constructs an empty MCarParameter. More... | |
MCarParameter (MCarThin car_thin) | |
Constructs a MCarParameter from a MCarThin. More... | |
MCarParameter (String label) | |
Constructs a MCarParameter from a car label. More... | |
MCarParameter (UInt code) | |
Constructs a MCarParameter from a car code. More... | |
Bool | isVacant () |
Returns whether the parameter is vacant - no car assigned to it. More... | |
void | clear () |
Clears the car representing this parameter. More... | |
MCarParameter | deepCopy (MCarParameter parameter) |
Performs a deep copy of the parameter. More... | |
MCarParameter | copyWithoutTrunk () |
Performs a copy of the parameter without parts, settings & purchase bits. More... | |
void | copyForChangeSet () |
void | copyForRevertingSetting () |
void | setChangeableParams (MCarParameter param) |
Sets all changeable parameters from the specified parameter. More... | |
String | getCarLabel () |
Gets the car label of this parameter. More... | |
UInt | getCarCode () |
Gets the car code of this parameter. More... | |
void | setCarCode () |
Sets the car code of this parameter. More... | |
String | getColorName () |
Gets the current color name for this car parameter. More... | |
Int | getPaintID () |
Gets the current color's paint id for this car parameter. More... | |
Int | getColorMax () |
Gets the car's maximum variation order/index. More... | |
Int | getPaintColorCount () |
Will always return 1. More... | |
Int | getPaintColor (Int unk) |
Gets the current paint color/variation order. More... | |
void | setPaintColor (Int unk, Int color) |
Sets the current paint color/variation order. More... | |
void | setWheelCode (UInt wheel_code, UInt color, UInt inch_up) |
Sets the current wheel code & other parameters. More... | |
Int | getWheelPaintColorCount () |
Will always return 1. More... | |
Int | getPaintColor (Int unk) |
Gets the wheel's paint color. More... | |
Int | setWheelPaintColor (Int unk, Int color) |
Sets the wheel's paint color. More... | |
Int | getBrakeCaliperPaintColorCount () |
Will always return 1. More... | |
Int | getBrakeCaliperPaintColor (Int unk) |
Gets the brake caliper's paint color. More... | |
Int | setBrakeCaliperPaintColor (Int unk, Int color) |
Sets the brake caliper's paint color. More... | |
Int | getWingPaintColorCount () |
Will always return 1. More... | |
Int | getWingPaintColor (Int unk) |
Gets the wing's paint color. More... | |
Int | setWingPaintColor (Int unk, Int color) |
Sets the wing's paint color. More... | |
void | beginInfo () |
Prepares the car parameter for fetching or getting some information. More... | |
void | endInfo () |
Array | getPower () |
String | getPowerString (Bool with_rpm=false) |
Gets a power string with a localized unit i.e "789 BHP". More... | |
Int | getTorque () |
Gets the car's torque. More... | |
String | getTorqueString (Bool with_rpm=false) |
Gets a weight string with a localized unit i.e "95 kgfm". More... | |
Int | getWeight () |
Gets the car's weight in kilograms. More... | |
String | getWeightString () |
Gets a weight string with a localized unit i.e "900 kg". More... | |
Int | getLength () |
Gets the car's length in millimeters. More... | |
String | getLengthString () |
Gets a length string with a localized unit i.e "4,800 mm". More... | |
Int | getFuelTankSize () |
Gets the fuel tank size. More... | |
Float | getPWR () |
Gets power to weight ratio. Call beginInfo() before! More... | |
Bool | setParts (CarPartsType part_type, Int part_id) |
Sets specific part for a type. More... | |
Int | getParts (CarPartsType part_type) |
Gets specific part for a type. More... | |
Array< PARTS_TIRE > | getTireCategory () |
Gets fitted tires. More... | |
Int | setFrontTireCategory (Int category) |
Sets front tire (FRONTTIRE). More... | |
Int | setRearTireCategory (PARTS_TIRE category) |
Sets rear tire (REARTIRE). More... | |
Bool | hasTireCategory (PARTS_TIRE category) |
Checks if a tire category is on. More... | |
Bool | setSuitableTires (UInt course_code, Bool rain_tire=false) |
Sets suitable tires based on the provided course. More... | |
Bool | setSuitableTiresWithTrunk (String course_label, Bool rain_tire=false) |
Sets suitable tires based on the provided course (trunk version) More... | |
Bool | setTarmacTiresWithTrunk () |
Unknown. More... | |
Int | getCarPartsCount (CarPartsType type) |
Unknown. More... | |
Bool | isExistPartsType (CarPartsType type) |
Unknown. More... | |
Bool | isExistParts (CarPartsType type, Int category) |
Unknown. More... | |
Bool | hasDefaultParts (CarPartsType type) |
Returns whether default parts is fitted for a provided CarPartsType. More... | |
Int | isTargetLocal () |
Unknown. More... | |
Bool | isCVT () |
Checks if the car has a continuously variable transmission. More... | |
Bool | isATOnly () |
Checks if the car is automatic transmission only. More... | |
UInt | getDriveTrainType () |
Gets the drivetrain type. More... | |
Float | getPerformanceIndex () |
Gets the car's PP as Float. More... | |
Float | getGTPerformanceIndexWithTire () |
Gets the car's PP as Float with tire bonus included. More... | |
Float | getPP () |
Gets the car's PP as Float. More... | |
Float | getPPWithTire () |
Gets the car's PP as Float with tire bonus included. More... | |
Int | getPP1000 () |
Gets the car's PP as int. More... | |
Int | getPPWithTire1000 () |
Gets the car's PP with tire bonus included. More... | |
void | setNewCar () |
Resets all condition based values, as if it was a brand new car. More... | |
void | setReplaceOil () |
Resets oil value. More... | |
Bool | isOilJustReplaced () |
Returns whether oil was recently replaced. More... | |
void | copyAccumulatedStatus (MCarParameter src) |
Copies all accumulated (car condition - oil etc) status from the specified car parameter. More... | |
void | clearWheelDirt () |
Clears wheel based dirtiness. More... | |
void | clearDirt () |
Clears dirt altogether. More... | |
void | clearScratch () |
Clear scratches. More... | |
void | setConstDirt (Float front_maybe, Float rear_maybe, Float unk, Float dirtiness) |
Unknown. More... | |
void | setConstScratch (Float unk) |
Unknown. More... | |
Float | getDirtinessIndex () |
Unknown. More... | |
Float | getScratchIndex () |
Unknown. More... | |
Float | getDirtinessIndex () |
Unknown. More... | |
Int | setOdometerForDebug (Int km) |
Sets odometer value. More... | |
Int | getSoundID () |
Gets the sound ID for this car. More... | |
Array< ULong > | getDeckenCustomIdList (Int custom_type) |
Unknown. More... | |
Array< ULong > | getWindowStickerCustomIdList () |
Bool | ownParts (CarPartsType parts_type, Int parts_index) |
Returns whether a part is purchased. More... | |
Bool | isHavingParts (CarPartsType parts_type, Int parts_index) |
Returns whether a part is fitted. More... | |
Bool | isAllowedParts (CarPartsType parts_type, Int parts_index) |
Returns a part is allowed to be fitted on the current car. More... | |
void | ownArcadePartsAll () |
Unlocks all "arcade parts" for the current car. More... | |
Bool | getHavingTireList (CourseCondition condition=4, PARTS_TIRE front=-1, PARTS_TIRE rear=-1) |
void | ownPartsAll () |
Sets all available parts as purchased for this car. More... | |
UInt | getRacingModifyCode () |
Gets RACINGMODIFY->NewCarCode. More... | |
void | applyRacingModify (Int code) |
Applies a racing modification. More... | |
AspirationType | getAspirationType () |
Gets aspiration type. More... | |
AspirationType | getCurrentAspirationType () |
Gets aspiration type. No different than getAspirationType() More... | |
Bool | isTurbo () |
Returns whether the car uses a turbo. More... | |
Bool | isSuperCharger () |
Returns whether the car uses a supercharger. More... | |
Int | getFrontWeightPercentage () |
Gets the front weight percentage. More... | |
Bool | isTuned (Bool check_quicksettings=false) |
Checks if the car is tuned. More... | |
void | setWingAngleOffsetFromRearCL (Int unk, Int unk2, Int unk3) |
Unknown. More... | |
Int | getExtraMeterKind (Int index) |
Gets interior meter kind. More... | |
void | setExtraMeterKind (Int index, Int kind) |
Sets interior meter kind. More... | |
Bool | isEqual (MCarParameter other) |
Returns whether this car parameter is equal to another. More... | |
String | dump () |
Dumps all parameter contents. Debug build only. More... | |
void | setupAvailableTiresInRace (Int tireUnk1, Int tireUnk2, Int tireUnk3, Int tireUnk4 Int tireUnk5, Int tireUnk6, Int tireUnk7, Int tireUnk8) |
Array< PARTS_TIRE > | setAllTiresAvailable (Bool front) |
void | checkIfEquippedPartsOwnedAndOwnIt () |
MBlob | buildGearRatioData () |
Gets a blob with all gear ratio data. More... | |
Array | buildEngineData (Bool unk, Float unk2=1000.0, Float unk3=200.0, Float unk4=1.0, Float unk5=1.0) |
Generates engine data. More... | |
Array | getGearRatioInfo () |
Gets gear ratio info. More... | |
Int | equalSettings (MCarParameter param) |
Checks whether this car parameter settings (or everything?) is equal to another. More... | |
Array | getGearRatioTuningRange (Int gear_nshift, Array gear_list) |
Unknown. More... | |
Public Member Functions inherited from System::Object | |
Object () | |
constructor taking no param More... | |
Bool | isInstanceOf (Class classType) |
Returns whether an object is of a specific class/type. More... | |
Object | getDeepCopy () |
Gets a deep copy of this object. More... | |
void | setDeepCopy (Object obj) |
Unk. More... | |
String | dump () |
Dumps all info about an object. More... | |
Object | getObjectAttribute (string path) |
void | setObjectAttribute (string path, Object value) |
Bool | hasPrimitiveInterface () |
Returns whether this object has a primitive interface. More... | |
Bool | toBool () |
Casts this object to Bool. More... | |
Byte | toByte () |
Casts this object to Byte. More... | |
Short | toShort () |
Casts this object to Short. More... | |
Int | toInt () |
Casts this object to Int. More... | |
Long | toLong () |
Casts this object to Long. More... | |
UByte | toUByte () |
Casts this object to UByte. More... | |
UShort | toUShort () |
Casts this object to UShort. More... | |
UInt | toUInt () |
Casts this object to UInt. More... | |
ULong | toULong () |
Casts this object to ULong. More... | |
Float | toFloat () |
Casts this object to Float. More... | |
Double | toDouble () |
Casts this object to Double. More... | |
String | toString () |
Casts this object to String. More... | |
Symbol | toSymbol () |
Casts this object to Symbol. More... | |
Bool | hasArrayInterface () |
Returns whether this object has an Array interface. More... | |
Int | getArrayCount () |
Gets the Array item count for this object. More... | |
void | setArrayCount () |
Sets the Array item count for this object. More... | |
Object | getArrayElement (Object arg0) |
Gets an Array item for this object. More... | |
void | setArrayElement (Object arg0, Object arg1) |
Sets the Array item for this object. More... | |
Bool | hasMapInterface () |
Returns whether this object has a Map interface. More... | |
int | getMapCount () |
Returns the count of items in the map. More... | |
void | setMapElement (Object arg0, Object arg1) |
Returns whether the Map has a specific object key. Bool hasMapElement(Object arg0);. More... | |
Object | getMapElement (Object arg0) |
Gets a Map element by key. More... | |
void | hasGeneratorInterface () |
Returns whether this object has a generator interface. More... | |
Iterator | generator () |
Returns generator (?) More... | |
void | hasIteratorInterface () |
Returns whether this object has an iterator. More... | |
Iterator | iterator () |
Gets the iterator for this object. More... | |
void | hasVariableInterface () |
Returns whether this object is a variable. More... | |
void | hasFunctionInterface () |
Returns whether this object has a function interface. More... | |
Object | call () |
Calls this object as a function. More... | |
Bool | hasByteDataInterface () |
Returns whether this object has a byte data interface. More... | |
Int | getByteDataCount () |
Returns the ByteData size for this object. More... | |
void | setByteDataCount (Int count) |
Sets the ByteData size for this object. More... | |
Int | getByteDataCapacity () |
Returns the ByteData capacity for this object. More... | |
void | setByteDataCapacity (Int capacity) |
Sets the ByteData capacity for this object. More... | |
ByteData | getByteData () |
Gets the underlaying ByteData. More... | |
void | setByteData (ByteData bytedata) |
Sets the underlaying ByteData. More... | |
void | hasObjectSelectorInterface () |
Returns whether this object has an object selector interface. More... | |
void | self () |
Gets the get for this object if it has a get interface. More... | |
void | getArchiveTree () |
void | setArchiveTree () |
ByteData | serialize () |
Serializes this object. More... | |
void | deserialize (ByteData serializedData) |
Deserializes this object. More... | |
void | defined (Object obj) |
Returns whether a certain object is defined within this object. More... | |
Array | find_all (FunctionObject func) |
Finds all the elements in this object that matches the predicates. More... | |
void | each_all (FunctionObject func) |
Applies callback to all elements in this object. More... | |
Array | map_all (FunctionObject< Object > func) |
Maps all the elements in this object. More... | |
Bool | operator!= () |
Returns whether this object is not equal to another. More... | |
Bool | operator== () |
Returns whether this object is equal to another. More... | |
Static Public Member Functions | |
static UInt | getVersion () |
Gets the latest supported version of MCarParameter. More... | |
static UInt | getSize () |
Gets the size of the MCarParameter structure. More... | |
Represents a car entity.
Definition at line 6 of file MCarParameter.cpp.
|
inline |
Constructs an empty MCarParameter.
Definition at line 10 of file MCarParameter.cpp.
|
inline |
Constructs a MCarParameter from a MCarThin.
Definition at line 13 of file MCarParameter.cpp.
|
inline |
Constructs a MCarParameter from a car label.
This will call setCarCode().
Definition at line 17 of file MCarParameter.cpp.
|
inline |
Constructs a MCarParameter from a car code.
This will call setCarCode(), but only from GENERIC_CAR.
Definition at line 21 of file MCarParameter.cpp.
void gtengine::MCarParameter::applyRacingModify | ( | Int | code | ) |
Applies a racing modification.
Will clear most parameters & purchased parts!
void gtengine::MCarParameter::beginInfo | ( | ) |
Prepares the car parameter for fetching or getting some information.
Array gtengine::MCarParameter::buildEngineData | ( | Bool | unk, |
Float | unk2 = 1000.0 , |
||
Float | unk3 = 200.0 , |
||
Float | unk4 = 1.0 , |
||
Float | unk5 = 1.0 |
||
) |
Generates engine data.
Call beginInfo() before!
MBlob gtengine::MCarParameter::buildGearRatioData | ( | ) |
Gets a blob with all gear ratio data.
Call beginInfo() before!
void gtengine::MCarParameter::checkIfEquippedPartsOwnedAndOwnIt | ( | ) |
void gtengine::MCarParameter::clear | ( | ) |
Clears the car representing this parameter.
void gtengine::MCarParameter::clearDirt | ( | ) |
Clears dirt altogether.
void gtengine::MCarParameter::clearScratch | ( | ) |
Clear scratches.
void gtengine::MCarParameter::clearWheelDirt | ( | ) |
Clears wheel based dirtiness.
void gtengine::MCarParameter::copyAccumulatedStatus | ( | MCarParameter | src | ) |
Copies all accumulated (car condition - oil etc) status from the specified car parameter.
void gtengine::MCarParameter::copyForChangeSet | ( | ) |
void gtengine::MCarParameter::copyForRevertingSetting | ( | ) |
MCarParameter gtengine::MCarParameter::copyWithoutTrunk | ( | ) |
Performs a copy of the parameter without parts, settings & purchase bits.
MCarParameter gtengine::MCarParameter::deepCopy | ( | MCarParameter | parameter | ) |
Performs a deep copy of the parameter.
String gtengine::MCarParameter::dump | ( | ) |
Dumps all parameter contents. Debug build only.
void gtengine::MCarParameter::endInfo | ( | ) |
Int gtengine::MCarParameter::equalSettings | ( | MCarParameter | param | ) |
Checks whether this car parameter settings (or everything?) is equal to another.
Still seems to memcmp everything
AspirationType gtengine::MCarParameter::getAspirationType | ( | ) |
Gets aspiration type.
WILL use SpecDB. Hardcoded to return AspirationType::OTHER for chaparral_vision_gt_14 (Code: 2107) Otherwise depends on fields at ENGINE, TURBINEKIT, SUPERCHARGER in SpecDB
Gets the brake caliper's paint color.
unk | Must always be 0. |
Int gtengine::MCarParameter::getBrakeCaliperPaintColorCount | ( | ) |
Will always return 1.
UInt gtengine::MCarParameter::getCarCode | ( | ) |
Gets the car code of this parameter.
String gtengine::MCarParameter::getCarLabel | ( | ) |
Gets the car label of this parameter.
Calls MSpecDB::getCarLabel() with the parameter's code field
Int gtengine::MCarParameter::getCarPartsCount | ( | CarPartsType | type | ) |
Unknown.
WILL call SpecDB
Int gtengine::MCarParameter::getColorMax | ( | ) |
Gets the car's maximum variation order/index.
WILL call SpecDB.
String gtengine::MCarParameter::getColorName | ( | ) |
Gets the current color name for this car parameter.
WILL call SpecDB on VARIATION with VarOrder.
AspirationType gtengine::MCarParameter::getCurrentAspirationType | ( | ) |
Gets aspiration type. No different than getAspirationType()
WILL use SpecDB. Hardcoded to return AspirationType::OTHER for chaparral_vision_gt_14 (Code: 2107) Otherwise depends on fields at ENGINE, TURBINEKIT, SUPERCHARGER in SpecDB
Float gtengine::MCarParameter::getDirtinessIndex | ( | ) |
Unknown.
Float gtengine::MCarParameter::getDirtinessIndex | ( | ) |
Unknown.
UInt gtengine::MCarParameter::getDriveTrainType | ( | ) |
Gets the drivetrain type.
WILL check SpecDB. Checks against DRIVETRAIN->drivetype.
Gets interior meter kind.
index | 2 bits, 0-3 max. |
Int gtengine::MCarParameter::getFrontWeightPercentage | ( | ) |
Gets the front weight percentage.
Int gtengine::MCarParameter::getFuelTankSize | ( | ) |
Gets the fuel tank size.
Array gtengine::MCarParameter::getGearRatioInfo | ( | ) |
Gets gear ratio info.
Call beginInfo() before!
Unknown.
Float gtengine::MCarParameter::getGTPerformanceIndexWithTire | ( | ) |
Gets the car's PP as Float with tire bonus included.
Call beginInfo() before!
Bool gtengine::MCarParameter::getHavingTireList | ( | CourseCondition | condition = 4 , |
PARTS_TIRE | front = -1 , |
||
PARTS_TIRE | rear = -1 |
||
) |
Int gtengine::MCarParameter::getLength | ( | ) |
Gets the car's length in millimeters.
Call beginInfo() before!
String gtengine::MCarParameter::getLengthString | ( | ) |
Gets a length string with a localized unit i.e "4,800 mm".
WILL call SpecDB. Will return "--- <unit>" if the car's real spec is hidden. Call beginInfo() before!
Gets the current paint color/variation order.
unk | Must always be 0. |
Gets the wheel's paint color.
unk | Must always be 0. |
Int gtengine::MCarParameter::getPaintColorCount | ( | ) |
Will always return 1.
Int gtengine::MCarParameter::getPaintID | ( | ) |
Gets the current color's paint id for this car parameter.
WILL call SpecDB.
Int gtengine::MCarParameter::getParts | ( | CarPartsType | part_type | ) |
Gets specific part for a type.
Float gtengine::MCarParameter::getPerformanceIndex | ( | ) |
Array gtengine::MCarParameter::getPower | ( | ) |
Call beginInfo() before!
Gets a power string with a localized unit i.e "789 BHP".
with_rpm | If provided, will also show rpm - i.e "938 BHP/7,500 rpm" |
WILL call SpecDB. Will return "--- <unit>" if the car's real spec is hidden. Call beginInfo() before!
Float gtengine::MCarParameter::getPP | ( | ) |
Int gtengine::MCarParameter::getPP1000 | ( | ) |
Float gtengine::MCarParameter::getPPWithTire | ( | ) |
Gets the car's PP as Float with tire bonus included.
Call beginInfo() before!
Int gtengine::MCarParameter::getPPWithTire1000 | ( | ) |
Float gtengine::MCarParameter::getPWR | ( | ) |
Gets power to weight ratio. Call beginInfo() before!
UInt gtengine::MCarParameter::getRacingModifyCode | ( | ) |
Gets RACINGMODIFY->NewCarCode.
Float gtengine::MCarParameter::getScratchIndex | ( | ) |
Unknown.
|
static |
Gets the size of the MCarParameter structure.
This value is generated from serialization, it may not be that fast.
Int gtengine::MCarParameter::getSoundID | ( | ) |
Gets the sound ID for this car.
Depends on MUFFLER and/or TURBINEKIT in SpecDB
Array< PARTS_TIRE > gtengine::MCarParameter::getTireCategory | ( | ) |
Gets fitted tires.
Int gtengine::MCarParameter::getTorque | ( | ) |
Gets the car's torque.
[1] = Torque RPM (?) (Int)
Call beginInfo() before!
Gets a weight string with a localized unit i.e "95 kgfm".
WILL call SpecDB. Will return "--- <unit>" if the car's real spec is hidden. Call beginInfo() before!
|
static |
Gets the latest supported version of MCarParameter.
Int gtengine::MCarParameter::getWeight | ( | ) |
Gets the car's weight in kilograms.
Call beginInfo() before!
String gtengine::MCarParameter::getWeightString | ( | ) |
Gets a weight string with a localized unit i.e "900 kg".
WILL call SpecDB. Will return "--- <unit>" if the car's real spec is hidden. Call beginInfo() before!
Int gtengine::MCarParameter::getWheelPaintColorCount | ( | ) |
Will always return 1.
Gets the wing's paint color.
unk | Must always be 0. |
Int gtengine::MCarParameter::getWingPaintColorCount | ( | ) |
Will always return 1.
Bool gtengine::MCarParameter::hasDefaultParts | ( | CarPartsType | type | ) |
Returns whether default parts is fitted for a provided CarPartsType.
Bool gtengine::MCarParameter::hasTireCategory | ( | PARTS_TIRE | category | ) |
Checks if a tire category is on.
Checks against FRONTTIRE only
Bool gtengine::MCarParameter::isAllowedParts | ( | CarPartsType | parts_type, |
Int | parts_index | ||
) |
Returns a part is allowed to be fitted on the current car.
Also checks whether the part is purchased.
Bool gtengine::MCarParameter::isATOnly | ( | ) |
Checks if the car is automatic transmission only.
WILL check SpecDB. Checks against GEAR->geartype.
Bool gtengine::MCarParameter::isCVT | ( | ) |
Checks if the car has a continuously variable transmission.
WILL check SpecDB. Checks against GEAR->geartype.
Bool gtengine::MCarParameter::isEqual | ( | MCarParameter | other | ) |
Returns whether this car parameter is equal to another.
Everything is just memcmp'd.
Bool gtengine::MCarParameter::isExistParts | ( | CarPartsType | type, |
Int | category | ||
) |
Unknown.
WILL call SpecDB
Bool gtengine::MCarParameter::isExistPartsType | ( | CarPartsType | type | ) |
Unknown.
WILL call SpecDB
Bool gtengine::MCarParameter::isHavingParts | ( | CarPartsType | parts_type, |
Int | parts_index | ||
) |
Returns whether a part is fitted.
Bool gtengine::MCarParameter::isOilJustReplaced | ( | ) |
Returns whether oil was recently replaced.
Bool gtengine::MCarParameter::isSuperCharger | ( | ) |
Returns whether the car uses a supercharger.
WILL use SpecDB. Depends on TURBINEKIT in SpecDB
Int gtengine::MCarParameter::isTargetLocal | ( | ) |
Unknown.
Checks if the car is tuned.
ANY differences between parts IDs and DEFAULT_PARTS in SpecDB will trigger the car as tuned. Tires are excluded.
check_quicksettings | Not sure on this one. Could also be resetting the car if it's tuned |
Bool gtengine::MCarParameter::isTurbo | ( | ) |
Returns whether the car uses a turbo.
WILL use SpecDB. Depends on TURBINEKIT in SpecDB
Bool gtengine::MCarParameter::isVacant | ( | ) |
Returns whether the parameter is vacant - no car assigned to it.
void gtengine::MCarParameter::ownArcadePartsAll | ( | ) |
Unlocks all "arcade parts" for the current car.
Sets all tires as purchased,
Bool gtengine::MCarParameter::ownParts | ( | CarPartsType | parts_type, |
Int | parts_index | ||
) |
Returns whether a part is purchased.
void gtengine::MCarParameter::ownPartsAll | ( | ) |
Sets all available parts as purchased for this car.
Array< PARTS_TIRE > gtengine::MCarParameter::setAllTiresAvailable | ( | Bool | front | ) |
Sets the brake caliper's paint color.
unk | Must always be 0. |
void gtengine::MCarParameter::setCarCode | ( | ) |
Sets the car code of this parameter.
This WILL set all parts linked to the specified code. Purchase bits will also be set accordingly. GENERIC_CAR & TUNED_CARS labels are supported.
void gtengine::MCarParameter::setChangeableParams | ( | MCarParameter | param | ) |
Sets all changeable parameters from the specified parameter.
All condition states (body, oil, etc), purchase flags, win count & more
void gtengine::MCarParameter::setConstDirt | ( | Float | front_maybe, |
Float | rear_maybe, | ||
Float | unk, | ||
Float | dirtiness | ||
) |
Unknown.
void gtengine::MCarParameter::setConstScratch | ( | Float | unk | ) |
Unknown.
Sets interior meter kind.
index | 2 bits, 0-3 max. |
kind | 10 bits, 0-1023 max. |
Sets front tire (FRONTTIRE).
void gtengine::MCarParameter::setNewCar | ( | ) |
Resets all condition based values, as if it was a brand new car.
Sets the current paint color/variation order.
unk | Must always be 0. |
Bool gtengine::MCarParameter::setParts | ( | CarPartsType | part_type, |
Int | part_id | ||
) |
Sets specific part for a type.
beginInfo() should be called just incase
Int gtengine::MCarParameter::setRearTireCategory | ( | PARTS_TIRE | category | ) |
Sets rear tire (REARTIRE).
void gtengine::MCarParameter::setReplaceOil | ( | ) |
Resets oil value.
Sets suitable tires based on the provided course.
WILL call SpecDB
Bool gtengine::MCarParameter::setSuitableTiresWithTrunk | ( | String | course_label, |
Bool | rain_tire = false |
||
) |
Sets suitable tires based on the provided course (trunk version)
WILL call SpecDB
Bool gtengine::MCarParameter::setTarmacTiresWithTrunk | ( | ) |
Unknown.
WILL call SpecDB
void gtengine::MCarParameter::setupAvailableTiresInRace | ( | Int | tireUnk1, |
Int | tireUnk2, | ||
Int | tireUnk3, | ||
Int tireUnk4 Int | tireUnk5, | ||
Int | tireUnk6, | ||
Int | tireUnk7, | ||
Int | tireUnk8 | ||
) |
Sets the current wheel code & other parameters.
WILL do some SpecDB operations on WHEEL, WHEEL_EX
Sets the wheel's paint color.
unk | Must always be 0. |
Unknown.
Sets the wing's paint color.
unk | Must always be 0. |
SettingDefault gtengine::MCarParameter::ABSCorneringControlLevel |
Definition at line 652 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::ASCC |
ASCC from SpecDB.
Definition at line 601 of file MCarParameter.cpp.
Int gtengine::MCarParameter::ballastPosition |
Definition at line 662 of file MCarParameter.cpp.
Int gtengine::MCarParameter::ballastWeight |
Definition at line 661 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::battery |
Definition at line 381 of file MCarParameter.cpp.
Float gtengine::MCarParameter::body_coating |
Definition at line 330 of file MCarParameter.cpp.
Float gtengine::MCarParameter::body_life |
Definition at line 327 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::brake |
BRAKE from SpecDB.
Definition at line 577 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::brakeController |
BRAKECONTROLLER from SpecDB.
Definition at line 580 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::chassis |
CHASSIS from SpecDB.
Definition at line 583 of file MCarParameter.cpp.
Int gtengine::MCarParameter::color |
Car color (variation order/index).
When setting this value, a check will be made on SpecDB on whether its not over the maximum var order.
Definition at line 72 of file MCarParameter.cpp.
Int gtengine::MCarParameter::control_type |
Getter-only.
Definition at line 139 of file MCarParameter.cpp.
Int gtengine::MCarParameter::decken_type |
Sticker type.
Definition at line 403 of file MCarParameter.cpp.
Float gtengine::MCarParameter::dirtiness |
Definition at line 325 of file MCarParameter.cpp.
Int gtengine::MCarParameter::dirtiness100 |
Definition at line 326 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::drivetrain |
DRIVETRAIN from SpecDB.
Definition at line 589 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::engine |
ENGINE from SpecDB.
Definition at line 586 of file MCarParameter.cpp.
Float gtengine::MCarParameter::engine_life |
Definition at line 323 of file MCarParameter.cpp.
Bool gtengine::MCarParameter::everlasting |
Definition at line 328 of file MCarParameter.cpp.
Interior meter backlight colors.
Definition at line 523 of file MCarParameter.cpp.
Int gtengine::MCarParameter::extraMeterCount |
Int gtengine::MCarParameter::FinalGearRatio |
Definition at line 648 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontABS |
Definition at line 632 of file MCarParameter.cpp.
SettingDefault gtengine::MCarParameter::FrontBrakeBalanceLevel |
Definition at line 650 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontCamber |
Definition at line 629 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontCl |
Definition at line 634 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontDamperF1B |
Definition at line 619 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontDamperF1R |
Definition at line 621 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontDamperF2B |
Definition at line 620 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontDamperF2R |
Definition at line 622 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontLSDParam |
Definition at line 655 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontLSDParam2 |
Definition at line 657 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontLSDParam3 |
Definition at line 659 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontRideheight |
Definition at line 615 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontSpringRate |
Definition at line 617 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontStabilizer |
Definition at line 653 of file MCarParameter.cpp.
Int gtengine::MCarParameter::FrontToe |
Definition at line 627 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::garage_id |
Garage ID (for the garage file) for this car.
Definition at line 387 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::gasoline_liter |
Definition at line 379 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::gear |
GEAR from SpecDB.
Definition at line 592 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear10th |
Definition at line 646 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear11th |
Definition at line 647 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear1st |
Definition at line 637 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear2nd |
Definition at line 638 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear3rd |
Definition at line 639 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear4th |
Definition at line 640 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear5th |
Definition at line 641 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear6th |
Definition at line 642 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear7th |
Definition at line 643 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear8th |
Definition at line 644 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Gear9th |
Definition at line 645 of file MCarParameter.cpp.
Int gtengine::MCarParameter::GearLastFinal |
Definition at line 649 of file MCarParameter.cpp.
Int gtengine::MCarParameter::GearReverse |
Definition at line 636 of file MCarParameter.cpp.
Int gtengine::MCarParameter::horn_sound_id |
Horn ID.
Definition at line 400 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::LSD |
LSD from SpecDB.
Definition at line 598 of file MCarParameter.cpp.
Int gtengine::MCarParameter::MaxSpeed_10 |
Definition at line 663 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::NOS |
NOS from SpecDB.
Definition at line 610 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::nos_duration_sec |
Definition at line 377 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::nos_ratio100 |
Definition at line 375 of file MCarParameter.cpp.
Int gtengine::MCarParameter::nosTorqueVolume |
Definition at line 665 of file MCarParameter.cpp.
MTime gtengine::MCarParameter::obtain_date |
Getter-only. Date when this car was obtained.
Definition at line 393 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::odometer |
Definition at line 322 of file MCarParameter.cpp.
Float gtengine::MCarParameter::oil_life |
Definition at line 324 of file MCarParameter.cpp.
Int gtengine::MCarParameter::Param4WD |
Definition at line 631 of file MCarParameter.cpp.
Int gtengine::MCarParameter::powerModifyRatio |
Definition at line 612 of file MCarParameter.cpp.
Int gtengine::MCarParameter::quicktune_chassis_performance |
Definition at line 217 of file MCarParameter.cpp.
Int gtengine::MCarParameter::quicktune_maxspeed |
Definition at line 215 of file MCarParameter.cpp.
Int gtengine::MCarParameter::quicktune_power |
Definition at line 213 of file MCarParameter.cpp.
Int gtengine::MCarParameter::quicktune_tcs |
Definition at line 216 of file MCarParameter.cpp.
Int gtengine::MCarParameter::quicktune_weight |
Definition at line 214 of file MCarParameter.cpp.
Int gtengine::MCarParameter::race_class_id |
Float gtengine::MCarParameter::rainX |
Definition at line 329 of file MCarParameter.cpp.
Bool gtengine::MCarParameter::real_spec_hidden |
Checks if the car specs are hidden from the user.
Depends on GENERIC_CAR->RealSpecHidden in SpecDB.
Definition at line 531 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearABS |
Definition at line 633 of file MCarParameter.cpp.
SettingDefault gtengine::MCarParameter::RearBrakeBalanceLevel |
Definition at line 651 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearCamber |
Definition at line 630 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearCl |
Definition at line 635 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearDamperF1B |
Definition at line 623 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearDamperF1R |
Definition at line 625 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearDamperF2B |
Definition at line 624 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearDamperF2R |
Definition at line 626 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearLSDParam |
Definition at line 656 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearLSDParam2 |
Definition at line 658 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearLSDParam3 |
Definition at line 660 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearRideheight |
Definition at line 616 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearSpringRate |
Definition at line 618 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearStabilizer |
Definition at line 654 of file MCarParameter.cpp.
Int gtengine::MCarParameter::RearToe |
Definition at line 628 of file MCarParameter.cpp.
Bool gtengine::MCarParameter::rentacar |
Getter-only. Whether this car is being rented (GT5 feature).
Definition at line 390 of file MCarParameter.cpp.
Int gtengine::MCarParameter::restrictorPermill |
Definition at line 664 of file MCarParameter.cpp.
Int gtengine::MCarParameter::special_driver |
Unknown.
Can be set with entry_base->proxy_driver_model from XML GameParameters. May be used to set the driver model? GT5 has it set to 6 for vettel events.
Definition at line 280 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::special_gas_liter |
Definition at line 373 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::special_gas_ratio100 |
Definition at line 371 of file MCarParameter.cpp.
ULong gtengine::MCarParameter::sticker_custom_id |
Sticker custom ID.
Definition at line 412 of file MCarParameter.cpp.
Int gtengine::MCarParameter::sticker_custom_type |
Sticker custom type.
Definition at line 409 of file MCarParameter.cpp.
Int gtengine::MCarParameter::sticker_number |
Sticker number.
Definition at line 406 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::suspension |
SUSPENSION from SpecDB.
Definition at line 595 of file MCarParameter.cpp.
Int gtengine::MCarParameter::target |
UInt gtengine::MCarParameter::TCSC |
TCSC from SpecDB.
Definition at line 604 of file MCarParameter.cpp.
Int gtengine::MCarParameter::team_id |
Int gtengine::MCarParameter::weightModifyRatio |
Definition at line 613 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::wheel |
Getter-only. Gets the current wheel code.
Definition at line 94 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::wheel_color |
Getter-only. Gets the current wheel code.
Definition at line 97 of file MCarParameter.cpp.
Int gtengine::MCarParameter::wheel_diameter |
Gets or sets the wheel's diameter.
Definition at line 100 of file MCarParameter.cpp.
Int gtengine::MCarParameter::wheel_inchup |
Gets or sets the wheel's inchup.
Definition at line 103 of file MCarParameter.cpp.
Int gtengine::MCarParameter::win_count |
Win count with this car.
Definition at line 384 of file MCarParameter.cpp.
ULong gtengine::MCarParameter::window_sticker_custom_id |
Definition at line 418 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::window_sticker_custom_type |
Definition at line 417 of file MCarParameter.cpp.
UInt gtengine::MCarParameter::wing |
WING from SpecDB.
Definition at line 607 of file MCarParameter.cpp.
Int gtengine::MCarParameter::wingAngleOffset |
Definition at line 490 of file MCarParameter.cpp.
Bool gtengine::MCarParameter::wingCustomized |
Definition at line 477 of file MCarParameter.cpp.
Int gtengine::MCarParameter::wingEndPlateYype |
Definition at line 479 of file MCarParameter.cpp.
Int gtengine::MCarParameter::wingFlapType |
Definition at line 478 of file MCarParameter.cpp.
Float gtengine::MCarParameter::wingHeightOffset |
Int gtengine::MCarParameter::wingMountYype |
Definition at line 480 of file MCarParameter.cpp.
Int gtengine::MCarParameter::wingStayType |
Definition at line 481 of file MCarParameter.cpp.
Float gtengine::MCarParameter::wingWidthOffset |