checkAttackLength - 18684092/Steering-Wheel-Project GitHub Wiki

CheckAttackLength

Access: Private

Prototype: bool checkAttackLength(Uint32 aLen)

Parameters: Uint32 aLen is time in milliseconds.

Return Value: Boolean true if within range, false otherwise.

Description: The attack length is part of the effect envelope and dictates how long it takes to go from the aLvl (attack level) to the lvl (level). Levels being the strength of the effect.

MIN_ATTACK_LENGTH >= aLen <= SDL_MAX_UINT32

Note: See the constant and periodic effect description.

Related Functions: checkDuration, checkDelay, checkAttackLength, checkFadeLength, checkEnvelopeTime, checkIterations, checkLevel, checkFadeLevel, checkSatLevel, checkCoEfLevel, checkDeadband, checkCentre, checkAttackLevel(), checkEffectNumber(), checkHaptic(), checkParamsConstant(), checkParamsEnvelope(), checkParamsPeriod(), checkParamsCondition(), checkDirection(), checkPeriodType(), checkConditionType(), checkGain()