PackagePBLabs.Rendering2D
Classpublic class Interpolated2DMoverComponent
InheritanceInterpolated2DMoverComponent Inheritance SimpleSpatialComponent Inheritance TickedComponent Inheritance EntityComponent



Public Properties
 PropertyDefined by
  AllowMovementProperty : PropertyReference = null
Interpolated2DMoverComponent
  AllowMovementValue : String = "null"
Interpolated2DMoverComponent
  FaceInMovementDirection : Boolean = false
Interpolated2DMoverComponent
  GoalPosition : Point
Interpolated2DMoverComponent
  GoalRotation : Number = 0
Interpolated2DMoverComponent
  InitialPosition : Point
[write-only]
Interpolated2DMoverComponent
  InitialRotation : Number
[write-only]
Interpolated2DMoverComponent
 InheritedIsRegistered : Boolean
Whether or not the component is currently registered with an entity.
EntityComponent
  MoveDelta : Point
[read-only]
Interpolated2DMoverComponent
  MovementHeadingThreshold : Number
Interpolated2DMoverComponent
 InheritedName : String
The name given to the component when it is added to an entity.
EntityComponent
  Nudge : Number = 1.0
Interpolated2DMoverComponent
 InheritedObjectMask : ObjectType
This object's collision flags.
SimpleSpatialComponent
 InheritedOwner : IEntity
A reference to the entity that this component currently belongs to.
EntityComponent
 InheritedPosition : Point
The position of the object.
SimpleSpatialComponent
 InheritedRegisterForTicks : Boolean = true
Do we actually want to register for ticks? Useful if a subclass wants to disable the functionality.
TickedComponent
 InheritedRotation : Number = 0
The rotation of the object.
SimpleSpatialComponent
  RotationSpeed : Number = 0.2
Interpolated2DMoverComponent
 InheritedSize : Point
The size of the object.
SimpleSpatialComponent
 InheritedSpatialManager : ISpatialManager2D
The spatial manager this object belongs to.
SimpleSpatialComponent
  TranslationSpeed : Number = 5.0
Interpolated2DMoverComponent
 InheritedUpdatePriority : Number = 0.0
The update priority for this component.
TickedComponent
 InheritedVelocity : Point
The linear velocity of the object in world units per second.
SimpleSpatialComponent
 InheritedWorldExtents : Rectangle
Axis aligned object bounds in world space.
SimpleSpatialComponent
Public Methods
 MethodDefined by
 Inherited
CastRay(start:Point, end:Point, mask:ObjectType, info:RayHitInfo):Boolean
Not currently implemented.
SimpleSpatialComponent
 Inherited
OnInterpolateTick(factor:Number):void
This method is called every frame by the ProcessManager on any objects that have been added to it with the AddTickedObject method.
TickedComponent
  
OnTick(tickRate:Number):void
Interpolated2DMoverComponent
 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
 Inherited
_OnAdd():void
SimpleSpatialComponent
 Inherited
_OnRemove():void
SimpleSpatialComponent
 Inherited
_OnReset():void
This is called anytime a component is added or removed from the owner entity.
EntityComponent
Property detail
AllowMovementPropertyproperty
public var AllowMovementProperty:PropertyReference = null
AllowMovementValueproperty 
public var AllowMovementValue:String = "null"
FaceInMovementDirectionproperty 
public var FaceInMovementDirection:Boolean = false
GoalPositionproperty 
public var GoalPosition:Point
GoalRotationproperty 
public var GoalRotation:Number = 0
InitialPositionproperty 
InitialPosition:Point  [write-only]Implementation
    public function set InitialPosition(value:Point):void
InitialRotationproperty 
InitialRotation:Number  [write-only]Implementation
    public function set InitialRotation(value:Number):void
MoveDeltaproperty 
MoveDelta:Point  [read-only]Implementation
    public function get MoveDelta():Point
MovementHeadingThresholdproperty 
public var MovementHeadingThreshold:Number
Nudgeproperty 
public var Nudge:Number = 1.0
RotationSpeedproperty 
public var RotationSpeed:Number = 0.2
TranslationSpeedproperty 
public var TranslationSpeed:Number = 5.0
Method detail
OnTick()method
public override function OnTick(tickRate:Number):voidParameters
tickRate:Number