Packageverlocity.components
Classpublic final class verVariables
InheritanceverVariables Inheritance Component Inheritance Singleton Inheritance Object

Creates global variables useful for score, health, and more. Automatically obfuscates to prevent memory hacking (TODO).



Public Properties
 PropertyDefined By
 InheritedclassName : Object
[read-only] Returns the class name of the component for dictionary registration.
Component
Protected Properties
 PropertyDefined By
 Inheritedstage : Stage
Component
Public Methods
 MethodDefined By
  
Constructor of the component.
verVariables
  
_Destruct():void
[override] Destructor of the component.
verVariables
 Inherited
_IsNotUpdating():Boolean
Returns if the component is not updating (paused).
Component
 Inherited
_IsValid():Boolean
Returns if this singleton is active/valid.
Singleton
 Inherited
_SetUpdating(bUpdating:Boolean):void
Pauses/resumes the component updating, if it's pausable.
Component
 Inherited
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
Protected Methods
 MethodDefined By
 Inherited
Called if verConsole is enabled, used to create concommands for the component.
Component
 Inherited
_Update():void
Called each engine tick (verEngine), if the component updates
Component
Constructor Detail
verVariables()Constructor
public function verVariables()

Constructor of the component.

Method Detail
_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

Returns
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