torque Torque Game Engine Documentation
TGE Version 1.5.2

IRangeValidatorScaled Class Reference

#include <typeValidators.h>

Inheritance diagram for IRangeValidatorScaled:

Inheritance graph
[legend]

Detailed Description

Scaled integer field validator.

Note:
This should NOT be used on a field that gets exported - the field is only validated once on initial assignment


Public Member Functions

 IRangeValidatorScaled (S32 scaleFactor, S32 minValueScaled, S32 maxValueScaled)
void validateType (SimObject *object, void *typePtr)
 validateType is called for each assigned value on the field this validator is attached to.

Private Attributes

S32 minV
S32 maxV
S32 factor


Constructor & Destructor Documentation

IRangeValidatorScaled::IRangeValidatorScaled ( S32  scaleFactor,
S32  minValueScaled,
S32  maxValueScaled 
) [inline]


Member Function Documentation

void IRangeValidatorScaled::validateType ( SimObject object,
void typePtr 
) [virtual]

validateType is called for each assigned value on the field this validator is attached to.

Implements TypeValidator.


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen