Packagecom.pblabs.engine.components
Classpublic class AnimatedComponent
InheritanceAnimatedComponent Inheritance EntityComponent Inheritance Object
Implements IAnimatedObject
Subclasses AnimationController, AnimatorComponent, DisplayObjectRenderer, DisplayObjectScene

Base class for components that need to perform actions every frame. This needs to be subclassed to be useful.



Public Properties
 PropertyDefined By
 InheritedisRegistered : Boolean
[read-only] Whether or not the component is currently registered with an entity.
EntityComponent
 Inheritedname : String
[read-only] The name given to the component when it is added to an entity.
EntityComponent
 Inheritedowner : IEntity
A reference to the entity that this component currently belongs to.
EntityComponent
  registerForUpdates : Boolean
Set to register/unregister for frame updates.
AnimatedComponent
  updatePriority : Number = 0.0
The update priority for this component.
AnimatedComponent
Public Methods
 MethodDefined By
  
onFrame(deltaTime:Number):void
This method is called every frame by the ProcessManager on any objects that have been added to it with the AddAnimatedObject method.
AnimatedComponent
 Inherited
register(owner:IEntity, name:String):void
Registers the component with an entity.
EntityComponent
 Inherited
reset():void
This is called by an entity on all of its components any time a component is added or removed.
EntityComponent
 Inherited
unregister():void
Unregisters the component from an entity.
EntityComponent
Protected Methods
 MethodDefined By
  
onAdd():void
[override]
AnimatedComponent
  
onRemove():void
[override]
AnimatedComponent
 Inherited
onReset():void
This is called anytime a component is added or removed from the owner entity.
EntityComponent
Property Detail
registerForUpdatesproperty
registerForUpdates:Boolean

Set to register/unregister for frame updates.


Implementation
    public function get registerForUpdates():Boolean
    public function set registerForUpdates(value:Boolean):void
updatePriorityproperty 
public var updatePriority:Number = 0.0

The update priority for this component. Higher numbered priorities have OnFrame called before lower priorities.

Method Detail
onAdd()method
override protected function onAdd():void

onFrame()method 
public function onFrame(deltaTime:Number):void

This method is called every frame by the ProcessManager on any objects that have been added to it with the AddAnimatedObject method.

Parameters

deltaTime:Number — The amount of time (in seconds) that has elapsed since the last frame.

onRemove()method 
override protected function onRemove():void