GTAdhocAPI
Gran Turismo (6) Adhoc API Documentation
Loading...
Searching...
No Matches
gtengine::MCarDriverParameter Class Reference

Represents a car driver/driver entity. More...

Inheritance diagram for gtengine::MCarDriverParameter:
System::Object

Public Member Functions

 MCarDriverParameter ()
 Constructs a new driver parameter with DriverType::NONE. More...
 
 MCarDriverParameter (DriverType driver_type)
 Constructs a new driver parameter from the provided driver type. More...
 
Bool isVacant ()
 Returns whether the driver parameter is vacant, no user assigned to it. More...
 
void clear ()
 Clears all data associated to this driver parameter. More...
 
void reconstruct ()
 Unknown. May assign everything back to default? More...
 
MCarDriverParameter deepCopy ()
 Creates a deep copy of this driver parameter. More...
 
MCarDriverParameter deepCopy (MCarDriverParameter parameter)
 Creates a deep copy from the specified driver parameter. More...
 
void setDefault ()
 Sets all defaults. More...
 
void setPlayer (Int port)
 Sets the player port attached to this driver parameter. More...
 
Int getControllerPort ()
 Gets the port of this driver parameter. More...
 
RTAType getRTAUnadjustable ()
 Gets RTA flags. More...
 
void setRTAUnadjustable (RTAType type)
 Sets raw RTA value. More...
 
void addRTAUnadjustable (RTAType type)
 Adds RTA flag. More...
 
void clearRTAUnadjustable ()
 Clears all RTA flags (sets to 0) More...
 
void setGroveAIParameter (String unused, Int ai_level)
 Unknown. More...
 
void isHuman ()
 Returns true if this driver is a human. More...
 
void isGhost ()
 
void setAILevel (Int level)
 Sets the AI level. More...
 
void setAISkill (Int braking_skill, Int cornering_skill, Int accelerating_skill=100, Int starting_skill=100)
 Sets the AI skills. 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...
 

Public Attributes

Int port
 Gets or sets the port. More...
 
DriverType type
 Gets or sets the type of driver parameter. More...
 
Int residence_id
 Unknown. More...
 
String display_name
 Gets or sets the display name of this driver parameter. More...
 
String online_id
 Gets or sets the online id (PSN Name) of this driver parameter. More...
 
String region
 Gets or sets the region (i.e "US") of this driver parameter. More...
 
Int manual
 Gets or sets whether manual transmission is enabled. More...
 
Int assist_asm
 Gets or sets whether ASM is enabled. More...
 
Int assist_tcs
 Gets or sets TCS (Traction control) level. More...
 
Int assist_4was
 Gets or sets 4WAS level. More...
 
Int active_brake_level
 Gets or sets Active Brake Level. More...
 
Int physics_pro
 Whether skid recovery is disabled. More...
 
Int steering_assist_type
 
Int active_steering
 
Int competition_flags
 
Int pad_yaw_gain
 
Int head_code
 Gets or sets the helmet DB code. More...
 
Int body_code
 Gets or sets the body DB code. More...
 
Int head_color_code
 Sets the helmet color index. More...
 
Int body_color_code
 Sets the body color index. More...
 
Int braking_skill
 Sets or gets the braking skill. More...
 
Int cornering_skill
 Sets or gets the cornering skill. More...
 
Int accelerating_skill
 Sets or gets the accelerating/corner out skill. More...
 
Int starting_skill
 Sets or gets the starting skill. More...
 
SpecialAIType special_ai_type
 
Bool driving_display_line
 Whether displaying the driving line is enabled. More...
 
GrowthParameter growth_parameter
 
Int disable_bspec_skill
 
Int ai_pit_decision_10_vitality_before_race
 
Int ai_pit_decision_10_tire_before_race
 
Int ai_roughness
 
Int ai_reaction_level
 
- Public Attributes inherited from System::Object
Int rc_size
 Getter-only. Reference counter size of this object. More...
 
Object rc_class
 Getter-only. Type name of the object. More...
 
Int rc_count
 Getter-only. Reference count of this object. More...
 
Int weak_count
 Getter-only. Weak reference count of this object. More...
 
Class class_id
 Class (type) object for this object. More...
 

Detailed Description

Represents a car driver/driver entity.

Definition at line 6 of file MCarDriverParameter.cpp.

Constructor & Destructor Documentation

◆ MCarDriverParameter() [1/2]

gtengine::MCarDriverParameter::MCarDriverParameter ( )
inline

Constructs a new driver parameter with DriverType::NONE.

Definition at line 10 of file MCarDriverParameter.cpp.

◆ MCarDriverParameter() [2/2]

gtengine::MCarDriverParameter::MCarDriverParameter ( DriverType  driver_type)
inline

Constructs a new driver parameter from the provided driver type.

Definition at line 13 of file MCarDriverParameter.cpp.

Member Function Documentation

◆ addRTAUnadjustable()

void gtengine::MCarDriverParameter::addRTAUnadjustable ( RTAType  type)

Adds RTA flag.

◆ clear()

void gtengine::MCarDriverParameter::clear ( )

Clears all data associated to this driver parameter.

◆ clearRTAUnadjustable()

void gtengine::MCarDriverParameter::clearRTAUnadjustable ( )

Clears all RTA flags (sets to 0)

◆ deepCopy() [1/2]

MCarDriverParameter gtengine::MCarDriverParameter::deepCopy ( )

Creates a deep copy of this driver parameter.

◆ deepCopy() [2/2]

MCarDriverParameter gtengine::MCarDriverParameter::deepCopy ( MCarDriverParameter  parameter)

Creates a deep copy from the specified driver parameter.

◆ getControllerPort()

Int gtengine::MCarDriverParameter::getControllerPort ( )

Gets the port of this driver parameter.

◆ getRTAUnadjustable()

RTAType gtengine::MCarDriverParameter::getRTAUnadjustable ( )

Gets RTA flags.

◆ isGhost()

void gtengine::MCarDriverParameter::isGhost ( )

◆ isHuman()

void gtengine::MCarDriverParameter::isHuman ( )

Returns true if this driver is a human.

Depends on DriverType::PLAYER

◆ isVacant()

Bool gtengine::MCarDriverParameter::isVacant ( )

Returns whether the driver parameter is vacant, no user assigned to it.

◆ reconstruct()

void gtengine::MCarDriverParameter::reconstruct ( )

Unknown. May assign everything back to default?

◆ setAILevel()

void gtengine::MCarDriverParameter::setAILevel ( Int  level)

Sets the AI level.

Parameters
levelMax 100.

◆ setAISkill()

void gtengine::MCarDriverParameter::setAISkill ( Int  braking_skill,
Int  cornering_skill,
Int  accelerating_skill = 100,
Int  starting_skill = 100 
)

Sets the AI skills.

◆ setDefault()

void gtengine::MCarDriverParameter::setDefault ( )

Sets all defaults.

◆ setGroveAIParameter()

void gtengine::MCarDriverParameter::setGroveAIParameter ( String  unused,
Int  ai_level 
)

Unknown.

Parameters
unusedNot used.
ai_levelMax 100.

◆ setPlayer()

void gtengine::MCarDriverParameter::setPlayer ( Int  port)

Sets the player port attached to this driver parameter.

Sets a 4 bit field, so 0 to 15.

Parameters
slot_id0 to 15

◆ setRTAUnadjustable()

void gtengine::MCarDriverParameter::setRTAUnadjustable ( RTAType  type)

Sets raw RTA value.

Member Data Documentation

◆ accelerating_skill

Int gtengine::MCarDriverParameter::accelerating_skill

Sets or gets the accelerating/corner out skill.

For AIs. Defaults to 100

Definition at line 141 of file MCarDriverParameter.cpp.

◆ active_brake_level

Int gtengine::MCarDriverParameter::active_brake_level

Gets or sets Active Brake Level.

Default is 0

Definition at line 77 of file MCarDriverParameter.cpp.

◆ active_steering

Int gtengine::MCarDriverParameter::active_steering

Definition at line 95 of file MCarDriverParameter.cpp.

◆ ai_pit_decision_10_tire_before_race

Int gtengine::MCarDriverParameter::ai_pit_decision_10_tire_before_race

Definition at line 156 of file MCarDriverParameter.cpp.

◆ ai_pit_decision_10_vitality_before_race

Int gtengine::MCarDriverParameter::ai_pit_decision_10_vitality_before_race

Definition at line 155 of file MCarDriverParameter.cpp.

◆ ai_reaction_level

Int gtengine::MCarDriverParameter::ai_reaction_level

Definition at line 158 of file MCarDriverParameter.cpp.

◆ ai_roughness

Int gtengine::MCarDriverParameter::ai_roughness

Definition at line 157 of file MCarDriverParameter.cpp.

◆ assist_4was

Int gtengine::MCarDriverParameter::assist_4was

Gets or sets 4WAS level.

Default is 1 (true)

Definition at line 73 of file MCarDriverParameter.cpp.

◆ assist_asm

Int gtengine::MCarDriverParameter::assist_asm

Gets or sets whether ASM is enabled.

Default is 0 (false)

Definition at line 65 of file MCarDriverParameter.cpp.

◆ assist_tcs

Int gtengine::MCarDriverParameter::assist_tcs

Gets or sets TCS (Traction control) level.

Default is 1

Definition at line 69 of file MCarDriverParameter.cpp.

◆ body_code

Int gtengine::MCarDriverParameter::body_code

Gets or sets the body DB code.

Definition at line 103 of file MCarDriverParameter.cpp.

◆ body_color_code

Int gtengine::MCarDriverParameter::body_color_code

Sets the body color index.

0 to 128.

Definition at line 111 of file MCarDriverParameter.cpp.

◆ braking_skill

Int gtengine::MCarDriverParameter::braking_skill

Sets or gets the braking skill.

For AIs. Defaults to 100

Definition at line 133 of file MCarDriverParameter.cpp.

◆ competition_flags

Int gtengine::MCarDriverParameter::competition_flags

Definition at line 96 of file MCarDriverParameter.cpp.

◆ cornering_skill

Int gtengine::MCarDriverParameter::cornering_skill

Sets or gets the cornering skill.

For AIs. Defaults to 100

Definition at line 137 of file MCarDriverParameter.cpp.

◆ disable_bspec_skill

Int gtengine::MCarDriverParameter::disable_bspec_skill

Definition at line 154 of file MCarDriverParameter.cpp.

◆ display_name

String gtengine::MCarDriverParameter::display_name

Gets or sets the display name of this driver parameter.

Definition at line 51 of file MCarDriverParameter.cpp.

◆ driving_display_line

Bool gtengine::MCarDriverParameter::driving_display_line

Whether displaying the driving line is enabled.

Definition at line 150 of file MCarDriverParameter.cpp.

◆ growth_parameter

GrowthParameter gtengine::MCarDriverParameter::growth_parameter

Definition at line 152 of file MCarDriverParameter.cpp.

◆ head_code

Int gtengine::MCarDriverParameter::head_code

Gets or sets the helmet DB code.

Definition at line 100 of file MCarDriverParameter.cpp.

◆ head_color_code

Int gtengine::MCarDriverParameter::head_color_code

Sets the helmet color index.

0 to 128.

Definition at line 107 of file MCarDriverParameter.cpp.

◆ manual

Int gtengine::MCarDriverParameter::manual

Gets or sets whether manual transmission is enabled.

Default is 0 (false)

Definition at line 61 of file MCarDriverParameter.cpp.

◆ online_id

String gtengine::MCarDriverParameter::online_id

Gets or sets the online id (PSN Name) of this driver parameter.

Definition at line 54 of file MCarDriverParameter.cpp.

◆ pad_yaw_gain

Int gtengine::MCarDriverParameter::pad_yaw_gain

Definition at line 97 of file MCarDriverParameter.cpp.

◆ physics_pro

Int gtengine::MCarDriverParameter::physics_pro

Whether skid recovery is disabled.

Definition at line 92 of file MCarDriverParameter.cpp.

◆ port

Int gtengine::MCarDriverParameter::port

Gets or sets the port.

Definition at line 42 of file MCarDriverParameter.cpp.

◆ region

String gtengine::MCarDriverParameter::region

Gets or sets the region (i.e "US") of this driver parameter.

Definition at line 57 of file MCarDriverParameter.cpp.

◆ residence_id

Int gtengine::MCarDriverParameter::residence_id

Unknown.

Definition at line 48 of file MCarDriverParameter.cpp.

◆ special_ai_type

SpecialAIType gtengine::MCarDriverParameter::special_ai_type

Definition at line 147 of file MCarDriverParameter.cpp.

◆ starting_skill

Int gtengine::MCarDriverParameter::starting_skill

Sets or gets the starting skill.

For AIs. Defaults to 100

Definition at line 145 of file MCarDriverParameter.cpp.

◆ steering_assist_type

Int gtengine::MCarDriverParameter::steering_assist_type

Definition at line 94 of file MCarDriverParameter.cpp.

◆ type

DriverType gtengine::MCarDriverParameter::type

Gets or sets the type of driver parameter.

Definition at line 45 of file MCarDriverParameter.cpp.


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