Package | verlocity.components |
Class | public final class verEnts |
Inheritance | verEnts Component Singleton Object |
Method | Defined By | ||
---|---|---|---|
verEnts()
Constructor of the component. | verEnts | ||
_Destruct():void [override]
Destructor of the component. | verEnts | ||
_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 | ||
CountAll():int
Returns the amount of current entities. | verEnts | ||
Create(entClass:Class, bCollision:Boolean = true, dispObject:DisplayObject = null, bBitmap:Boolean = false):*
Creates an entity. | verEnts | ||
CreateDrawable(bCollision:Boolean):DisplayEntity
Creates a display object entity with a sprite display object. | verEnts | ||
CreateEffect(mc:MovieClip, bBitmap:Boolean = false):Effect
Creates an effect. | verEnts | ||
CreateScreenEffect(scrFX:ScreenEffect, bAddOnTop:Boolean = true, bProtected:Boolean = false):*
Creates and spawns a screen effect. | verEnts | ||
GetAll():Array
Returns all of the current entities. | verEnts | ||
GetByClass(entClass:Class):Array
Returns an array of entities by class name. | verEnts | ||
GetByType(sType:String):Array
Returns an array of entities by type. | verEnts | ||
Returns the linked list that holds all the entities. | verEnts | ||
PauseAllAnimations():void
Pauses animations of all entities that have animations. | verEnts | ||
RemoveAll(bRemoveProtected:Boolean = false):void
Removes all of the entities. | verEnts | ||
RemoveAllClass(entClass:Class, bRemoveProtected:Boolean = false):void
Removes all entities based on class name. | verEnts | ||
RemoveAllType(sType:String, bRemoveProtected:Boolean = false):void
Removes all entities based on type. | verEnts | ||
RemoveAllTypes(aArray:Array, bRemoveProtected:Boolean = false):void
Removes all entities based on an array of types. | verEnts | ||
ResetAll():void
Resets all entities (calls their reset and init function). | verEnts | ||
ResumeAllAnimations():void
Resumes animations of all entities that have animations. | verEnts |
Method | Defined By | ||
---|---|---|---|
_Concommands():void [override]
Concommands of the component. | verEnts | ||
_Update():void [override]
Updates all the different lists of entities. | verEnts |
verEnts | () | Constructor |
public function verEnts()
Constructor of the component.
_Concommands | () | method |
override protected function _Concommands():void
Concommands of the component.
_Destruct | () | method |
override public function _Destruct():void
Destructor of the component.
_Update | () | method |
override protected function _Update():void
Updates all the different lists of entities.
CountAll | () | method |
public final function CountAll():int
Returns the amount of current entities.
Returnsint —
|
Create | () | method |
public final function Create(entClass:Class, bCollision:Boolean = true, dispObject:DisplayObject = null, bBitmap:Boolean = false):*
Creates an entity.
Parameters
entClass:Class — The class of the entity you wish to create
| |
bCollision:Boolean (default = true ) — Should collision be checked on this?
| |
dispObject:DisplayObject (default = null ) — The display object that represents the artwork of the entity
| |
bBitmap:Boolean (default = false )
|
* —
|
CreateDrawable | () | method |
public final function CreateDrawable(bCollision:Boolean):DisplayEntity
Creates a display object entity with a sprite display object. This is useful for creating a simple drawable entity using the graphics class.
Parameters
bCollision:Boolean — Should collision be checked on this?
|
DisplayEntity —
|
CreateEffect | () | method |
public final function CreateEffect(mc:MovieClip, bBitmap:Boolean = false):Effect
Creates an effect. Effects are one time animations objects without collision.
Parameters
mc:MovieClip — The movieclip effect.
| |
bBitmap:Boolean (default = false ) — Bitmap the effect?
|
Effect —
|
CreateScreenEffect | () | method |
public final function CreateScreenEffect(scrFX:ScreenEffect, bAddOnTop:Boolean = true, bProtected:Boolean = false):*
Creates and spawns a screen effect. Screen effects are displayed on the top of the entire screen.
Parameters
scrFX:ScreenEffect — Screen effect to spawn
| |
bAddOnTop:Boolean (default = true ) — Is it protected?
| |
bProtected:Boolean (default = false )
|
* —
|
GetAll | () | method |
public final function GetAll():Array
Returns all of the current entities.
ReturnsArray —
|
GetByClass | () | method |
public final function GetByClass(entClass:Class):Array
Returns an array of entities by class name.
Parameters
entClass:Class — The class name to search by
|
Array —
|
GetByType | () | method |
public final function GetByType(sType:String):Array
Returns an array of entities by type.
Parameters
sType:String — The type to search by
|
Array —
|
GetLinkedList | () | method |
public final function GetLinkedList():LinkedList
Returns the linked list that holds all the entities.
ReturnsLinkedList —
|
PauseAllAnimations | () | method |
public final function PauseAllAnimations():void
Pauses animations of all entities that have animations.
RemoveAll | () | method |
public final function RemoveAll(bRemoveProtected:Boolean = false):void
Removes all of the entities.
Parameters
bRemoveProtected:Boolean (default = false ) — Should we remove protected entities?
|
RemoveAllClass | () | method |
public final function RemoveAllClass(entClass:Class, bRemoveProtected:Boolean = false):void
Removes all entities based on class name.
Parameters
entClass:Class — The class to remove by
| |
bRemoveProtected:Boolean (default = false ) — Should we remove protected entities?
|
RemoveAllType | () | method |
public final function RemoveAllType(sType:String, bRemoveProtected:Boolean = false):void
Removes all entities based on type.
Parameters
sType:String — The type to remove by
| |
bRemoveProtected:Boolean (default = false ) — Should we remove protected entities?
|
RemoveAllTypes | () | method |
public final function RemoveAllTypes(aArray:Array, bRemoveProtected:Boolean = false):void
Removes all entities based on an array of types.
Parameters
aArray:Array — The array of string types
| |
bRemoveProtected:Boolean (default = false )
|
ResetAll | () | method |
public final function ResetAll():void
Resets all entities (calls their reset and init function). This occurs each time a state is soft reset.
ResumeAllAnimations | () | method |
public final function ResumeAllAnimations():void
Resumes animations of all entities that have animations.