Package | verlocity.core |
Class | public class Component |
Inheritance | Component Singleton Object |
Subclasses | ver3D, verAchievements, verBitmap, verCamera, verCollision, verConsole, verEngine, verEnts, verInput, verLayers, verParticles, verPause, verPhysics, verSave, verSound, verSoundAnalyzer, verSoundscape, verStates, verStats, verUI, verVariables |
Property | Defined By | ||
---|---|---|---|
className : Object [read-only]
Returns the class name of the component for
dictionary registration. | Component |
Property | Defined By | ||
---|---|---|---|
stage : Stage | Component |
Method | Defined By | ||
---|---|---|---|
Component(sStage:Stage = null, bUpdate:Boolean = false, bPauses:Boolean = false, bPauseOnStart:Boolean = false)
The constructor of a component. | Component | ||
_Destruct():void [override]
Called when the component is destroyed. | Component | ||
_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 |
Method | Defined By | ||
---|---|---|---|
_Concommands():void
Called if verConsole is enabled, used to create concommands for the component. | Component | ||
_Update():void
Called each engine tick (verEngine), if the component updates
| Component |
className | property |
className:Object
[read-only] Returns the class name of the component for dictionary registration.
public function get className():Object
stage | property |
protected var stage:Stage
Component | () | Constructor |
public function Component(sStage:Stage = null, bUpdate:Boolean = false, bPauses:Boolean = false, bPauseOnStart:Boolean = false)
The constructor of a component.
ParameterssStage:Stage (default = null ) — The stage (to allow access to)
| |
bUpdate:Boolean (default = false ) — Update this component each frame (calls _Update)
| |
bPauses:Boolean (default = false ) — Can this component pause?
| |
bPauseOnStart:Boolean (default = false ) — Should this component be paused when first created?
|
_Concommands | () | method |
protected function _Concommands():void
Called if verConsole is enabled, used to create concommands for the component.
_Destruct | () | method |
override public function _Destruct():void
Called when the component is destroyed.
_IsNotUpdating | () | method |
public function _IsNotUpdating():Boolean
Returns if the component is not updating (paused).
ReturnsBoolean —
|
_SetUpdating | () | method |
public function _SetUpdating(bUpdating:Boolean):void
Pauses/resumes the component updating, if it's pausable.
Parameters
bUpdating:Boolean |
_Update | () | method |
protected function _Update():void
Called each engine tick (verEngine), if the component updates
_UpdateComponent | () | method |
public function _UpdateComponent():void
Updates the component, if possible.