SuperTuxKart
|
Characteristics are the properties of a kart that influence gameplay mechanics. More...
#include <abstract_characteristic.hpp>
Classes | |
union | Value |
Public Member Functions | |
virtual void | copyFrom (const AbstractCharacteristic *other)=0 |
virtual void | process (CharacteristicType type, Value value, bool *is_set) const |
The process function is the core of this characteristics system. | |
float | getSuspensionStiffness () const |
float | getSuspensionRest () const |
float | getSuspensionTravel () const |
bool | getSuspensionExpSpringResponse () const |
float | getSuspensionMaxForce () const |
float | getStabilityRollInfluence () const |
float | getStabilityChassisLinearDamping () const |
float | getStabilityChassisAngularDamping () const |
float | getStabilityDownwardImpulseFactor () const |
float | getStabilityTrackConnectionAccel () const |
std::vector< float > | getStabilityAngularFactor () const |
float | getStabilitySmoothFlyingImpulse () const |
InterpolationArray | getTurnRadius () const |
float | getTurnTimeResetSteer () const |
InterpolationArray | getTurnTimeFullSteer () const |
float | getEnginePower () const |
float | getEngineMaxSpeed () const |
float | getEngineGenericMaxSpeed () const |
float | getEngineBrakeFactor () const |
float | getEngineBrakeTimeIncrease () const |
float | getEngineMaxSpeedReverseRatio () const |
std::vector< float > | getGearSwitchRatio () const |
std::vector< float > | getGearPowerIncrease () const |
float | getMass () const |
float | getWheelsDampingRelaxation () const |
float | getWheelsDampingCompression () const |
float | getJumpAnimationTime () const |
float | getLeanMax () const |
float | getLeanSpeed () const |
float | getAnvilDuration () const |
float | getAnvilWeight () const |
float | getAnvilSpeedFactor () const |
float | getParachuteFriction () const |
float | getParachuteDuration () const |
float | getParachuteDurationOther () const |
float | getParachuteDurationRankMult () const |
float | getParachuteDurationSpeedMult () const |
float | getParachuteLboundFraction () const |
float | getParachuteUboundFraction () const |
float | getParachuteMaxSpeed () const |
float | getFrictionKartFriction () const |
float | getBubblegumDuration () const |
float | getBubblegumSpeedFraction () const |
float | getBubblegumTorque () const |
float | getBubblegumFadeInTime () const |
float | getBubblegumShieldDuration () const |
float | getZipperDuration () const |
float | getZipperForce () const |
float | getZipperSpeedGain () const |
float | getZipperMaxSpeedIncrease () const |
float | getZipperFadeOutTime () const |
float | getSwatterDuration () const |
float | getSwatterDistance () const |
float | getSwatterSquashDuration () const |
float | getSwatterSquashSlowdown () const |
float | getPlungerBandMaxLength () const |
float | getPlungerBandForce () const |
float | getPlungerBandDuration () const |
float | getPlungerBandSpeedIncrease () const |
float | getPlungerBandFadeOutTime () const |
float | getPlungerInFaceTime () const |
std::vector< float > | getStartupTime () const |
std::vector< float > | getStartupBoost () const |
float | getRescueDuration () const |
float | getRescueVertOffset () const |
float | getRescueHeight () const |
float | getExplosionDuration () const |
float | getExplosionRadius () const |
float | getExplosionInvulnerabilityTime () const |
float | getNitroDuration () const |
float | getNitroEngineForce () const |
float | getNitroEngineMult () const |
float | getNitroConsumption () const |
float | getNitroSmallContainer () const |
float | getNitroBigContainer () const |
float | getNitroMaxSpeedIncrease () const |
float | getNitroFadeOutTime () const |
float | getNitroMax () const |
float | getSlipstreamDurationFactor () const |
float | getSlipstreamBaseSpeed () const |
float | getSlipstreamLength () const |
float | getSlipstreamWidth () const |
float | getSlipstreamInnerFactor () const |
float | getSlipstreamMinCollectTime () const |
float | getSlipstreamMaxCollectTime () const |
float | getSlipstreamAddPower () const |
float | getSlipstreamMinSpeed () const |
float | getSlipstreamMaxSpeedIncrease () const |
float | getSlipstreamFadeOutTime () const |
float | getSkidIncrease () const |
float | getSkidDecrease () const |
float | getSkidMax () const |
float | getSkidTimeTillMax () const |
float | getSkidVisual () const |
float | getSkidVisualTime () const |
float | getSkidRevertVisualTime () const |
float | getSkidMinSpeed () const |
std::vector< float > | getSkidTimeTillBonus () const |
std::vector< float > | getSkidBonusSpeed () const |
std::vector< float > | getSkidBonusTime () const |
std::vector< float > | getSkidBonusForce () const |
float | getSkidPhysicalJumpTime () const |
float | getSkidGraphicalJumpTime () const |
float | getSkidPostSkidRotateFactor () const |
float | getSkidReduceTurnMin () const |
float | getSkidReduceTurnMax () const |
bool | getSkidEnabled () const |
Characteristics are the properties of a kart that influence gameplay mechanics.
The biggest parts are:
The documentation of these properties can be found in the kart_characteristics.xml file. Large parts of this file are generated by tools/create_kart_properties.py. Please don't change the generated code here, instead change the script, regenerate the code and overwrite the whole generated part with the result.
|
pure virtual |
Implemented in XmlCharacteristic.
|
virtual |
The process function is the core of this characteristics system.
The process function should change the given value.
Any computation of the properties should happen here and modify the values of the value-pointer (be sure to use the right type!) and the is_set parameter when the value was set by the call (and wasn't set before).
type | The characteristic that should be modified. |
value | The current value and result at the same time. |
is_set | If the current value was already set (so it can be used for computations). |
The input and output argument is saved in value. is_set describes if the value is already set or if it's undefined. The function also has to set is_set if the state changed.
Reimplemented in CachedCharacteristic, CombinedCharacteristic, and XmlCharacteristic.