| Package | PBLabs.Rendering2D |
| Class | public class Interpolated2DMoverComponent |
| Inheritance | Interpolated2DMoverComponent SimpleSpatialComponent TickedComponent EntityComponent |
| Property | Defined 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 | ||
![]() | IsRegistered : Boolean
Whether or not the component is currently registered with an entity.
| EntityComponent | |
| MoveDelta : Point [read-only]
| Interpolated2DMoverComponent | ||
| MovementHeadingThreshold : Number | Interpolated2DMoverComponent | ||
![]() | Name : String
The name given to the component when it is added to an entity.
| EntityComponent | |
| Nudge : Number = 1.0 | Interpolated2DMoverComponent | ||
![]() | ObjectMask : ObjectType
This object's collision flags.
| SimpleSpatialComponent | |
![]() | Owner : IEntity
A reference to the entity that this component currently belongs to.
| EntityComponent | |
![]() | Position : Point
The position of the object.
| SimpleSpatialComponent | |
![]() | RegisterForTicks : Boolean = true
Do we actually want to register for ticks? Useful if a subclass wants
to disable the functionality.
| TickedComponent | |
![]() | Rotation : Number = 0
The rotation of the object.
| SimpleSpatialComponent | |
| RotationSpeed : Number = 0.2 | Interpolated2DMoverComponent | ||
![]() | Size : Point
The size of the object.
| SimpleSpatialComponent | |
![]() | SpatialManager : ISpatialManager2D
The spatial manager this object belongs to.
| SimpleSpatialComponent | |
| TranslationSpeed : Number = 5.0 | Interpolated2DMoverComponent | ||
![]() | UpdatePriority : Number = 0.0
The update priority for this component.
| TickedComponent | |
![]() | Velocity : Point
The linear velocity of the object in world units per second.
| SimpleSpatialComponent | |
![]() | WorldExtents : Rectangle
Axis aligned object bounds in world space.
| SimpleSpatialComponent | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
Not currently implemented.
| SimpleSpatialComponent | |
![]() |
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 | ||
![]() |
Registers the component with an entity.
| EntityComponent | |
![]() |
Reset():void
This is called by an entity on all of its components any time a component
is added or removed.
| EntityComponent | |
![]() |
Unregister():void
Unregisters the component from an entity.
| EntityComponent | |
| AllowMovementProperty | property |
public var AllowMovementProperty:PropertyReference = null
| AllowMovementValue | property |
public var AllowMovementValue:String = "null"
| FaceInMovementDirection | property |
public var FaceInMovementDirection:Boolean = false
| GoalPosition | property |
public var GoalPosition:Point
| GoalRotation | property |
public var GoalRotation:Number = 0
| InitialPosition | property |
InitialPosition:Point [write-only]Implementation
public function set InitialPosition(value:Point):void
| InitialRotation | property |
InitialRotation:Number [write-only]Implementation
public function set InitialRotation(value:Number):void
| MoveDelta | property |
MoveDelta:Point [read-only]Implementation
public function get MoveDelta():Point
| MovementHeadingThreshold | property |
public var MovementHeadingThreshold:Number
| Nudge | property |
public var Nudge:Number = 1.0
| RotationSpeed | property |
public var RotationSpeed:Number = 0.2
| TranslationSpeed | property |
public var TranslationSpeed:Number = 5.0
| OnTick | () | method |
public override function OnTick(tickRate:Number):voidParameters
tickRate:Number |