Package | verlocity.components |
Class | public final class verVariables |
Inheritance | verVariables Component Singleton Object |
Method | Defined By | ||
---|---|---|---|
Constructor of the component. | verVariables | ||
_Destruct():void [override]
Destructor of the component. | verVariables | ||
_IsNotUpdating():Boolean
Returns if the component is not updating (paused). | Component | ||
_IsValid():Boolean
Returns if this singleton is active/valid. | Singleton | ||
_SetUpdating(bUpdating:Boolean):void
Pauses/resumes the component updating, if it's pausable. | Component | ||
_UpdateComponent():void
Updates the component, if possible. | Component | ||
Delete(sName:String):void
Removes a variable
| verVariables | ||
Get(sName:String):Number
Returns a variable based on string name given
| verVariables | ||
Increase(sName:String, nAmount:Number = 1):void
Increases a variable by a defined amount
| verVariables | ||
Reset(sName:String):void
Resets a variable to zero
| verVariables | ||
Set(sName:String, nValue:Number):void
Sets a variable to a specific value. | verVariables |
verVariables | () | Constructor |
public function verVariables()
Constructor of the component.
_Destruct | () | method |
override public function _Destruct():void
Destructor of the component.
Delete | () | method |
public final function Delete(sName:String):void
Removes a variable
Parameters
sName:String — The string name of the variable
|
Get | () | method |
public final function Get(sName:String):Number
Returns a variable based on string name given
Parameters
sName:String — The string name of the variable
|
Number —
|
Increase | () | method |
public final function Increase(sName:String, nAmount:Number = 1):void
Increases a variable by a defined amount
Parameters
sName:String — The string name of the variable
| |
nAmount:Number (default = 1 ) — The amount to increase
|
Reset | () | method |
public final function Reset(sName:String):void
Resets a variable to zero
Parameters
sName:String — The string name of the variable
|
Set | () | method |
public final function Set(sName:String, nValue:Number):void
Sets a variable to a specific value.
Parameters
sName:String — The string name of the variable for later access
| |
nValue:Number — The value to set the variable to
|