Skip to content

checkAttackLength

Andy Perrett edited this page Jul 30, 2020 · 2 revisions

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

Clone this wiki locally