Packagecom.pblabs.engine.entity
Interfacepublic interface IPropertyBag

Minimal interface for accessing properties on some object.



Public Properties
 PropertyDefined By
  eventDispatcher : IEventDispatcher
[read-only] The event dispatcher that controls events for this entity.
IPropertyBag
Public Methods
 MethodDefined By
  
Checks whether a property exists on this entity.
IPropertyBag
  
getProperty(property:PropertyReference, defaultValue:* = null):*
Gets the value of a property on this entity.
IPropertyBag
  
setProperty(property:PropertyReference, value:*):void
Sets the value of a property on this entity.
IPropertyBag
Property Detail
eventDispatcherproperty
eventDispatcher:IEventDispatcher  [read-only]

The event dispatcher that controls events for this entity. Components should use this to dispatch and listen for events.


Implementation
    public function get eventDispatcher():IEventDispatcher
Method Detail
doesPropertyExist()method
public function doesPropertyExist(property:PropertyReference):Boolean

Checks whether a property exists on this entity.

Parameters

property:PropertyReference — The property reference describing the property to look for on this entity.

Returns
Boolean — True if the property exists, false otherwise.
getProperty()method 
public function getProperty(property:PropertyReference, defaultValue:* = null):*

Gets the value of a property on this entity.

Parameters

property:PropertyReference — The property reference describing the property to look for on this entity.
 
defaultValue:* (default = null) — If the property is not found, return this value.

Returns
* — The current value of the property, or null if it doesn't exist.
setProperty()method 
public function setProperty(property:PropertyReference, value:*):void

Sets the value of a property on this entity.

Parameters

property:PropertyReference — The property reference describing the property to look for on this entity.
 
value:* — The value to set on the specified property.