This class generates random values within a given minimum and maximum interval. More...
Inherits PUDynamicAttribute.
Public Member Functions | |
| PUDynamicAttributeRandom (void) | |
| Constructor. | |
| PUDynamicAttributeRandom () | |
| Constructor. | |
| PUDynamicAttributeRandom () | |
| Constructor. | |
| PUDynamicAttributeRandom (const PUDynamicAttributeRandom &dynamicAttributeRandom) | |
| Copy constructor. | |
| PUDynamicAttributeRandom ( var dynamicAttributeRandom) | |
| Copy constructor. | |
| PUDynamicAttributeRandom ( local dynamicAttributeRandom) | |
| Copy constructor. | |
| ~PUDynamicAttributeRandom (void) | |
| Destructor. | |
| virtual float | getValue (float x=0) override |
| override | |
| void | setMin (float min) |
| Sets the minimum value. More... | |
| float | getMin (void) const |
| Gets the minimum value. More... | |
| void | setMax (float max) |
| Sets the maximum value. More... | |
| float | getMax (void) const |
| Sets the maximum value. More... | |
| void | setMinMax (float min, float max) |
| Sets the minimum and maximum values. More... | |
| var | setMinMax ( var min, var max) |
| Sets the minimum and maximum values. More... | |
| local | setMinMax ( local min, local max) |
| Sets the minimum and maximum values. More... | |
| virtual PUDynamicAttributeRandom * | clone () override |
| override | |
| local | clone () |
| override | |
| virtual void | copyAttributesTo (PUDynamicAttribute *dynamicAttribute) override |
| override | |
| local | copyAttributesTo ( local dynamicAttribute) |
| override | |
Public Member Functions inherited from PUDynamicAttribute | |
| PUDynamicAttribute (void) | |
| Constructor. | |
| virtual | ~PUDynamicAttribute (void) |
| Destructor. | |
| DynamicAttributeType | getType (void) const |
| Get the type of dynamic attribute. More... | |
| local | getType () |
| Get the type of dynamic attribute. More... | |
| void | setType (DynamicAttributeType type) |
| Set the type of dynamic attribute. More... | |
| bool | isValueChangedExternally (void) const |
| Returns true if one of the attributes was changed by an external source. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
This class generates random values within a given minimum and maximum interval.
| void setMin | ( | float | min | ) |
Sets the minimum value.
The minimum value.
| var setMin | ( | var | min | ) |
Sets the minimum value.
The minimum value.
| local setMin | ( | local | min | ) |
Sets the minimum value.
The minimum value.
| float getMin | ( | void | ) | const |
Gets the minimum value.
The minimum value.
| var getMin | ( | ) |
Gets the minimum value.
The minimum value.
| local getMin | ( | ) |
Gets the minimum value.
The minimum value.
| void setMax | ( | float | max | ) |
Sets the maximum value.
The maximum value.
| var setMax | ( | var | max | ) |
Sets the maximum value.
The maximum value.
| local setMax | ( | local | max | ) |
Sets the maximum value.
The maximum value.
| float getMax | ( | void | ) | const |
Sets the maximum value.
The maximum value.
| var getMax | ( | ) |
Sets the maximum value.
The maximum value.
| local getMax | ( | ) |
Sets the maximum value.
The maximum value.
| void setMinMax | ( | float | min, |
| float | max | ||
| ) |
Sets the minimum and maximum values.
The minimum value. The maximum value.
| var setMinMax | ( | var | min, |
| var | max | ||
| ) |
Sets the minimum and maximum values.
The minimum value. The maximum value.
| local setMinMax | ( | local | min, |
| local | max | ||
| ) |
Sets the minimum and maximum values.
The minimum value. The maximum value.