| Package | com.asterisq.constellation.behaviors |
| Interface | public interface IBehavior extends flash.events.IEventDispatcher |
| Implementors | Behavior |
| Property | Defined by | ||
|---|---|---|---|
| constellation : IConstellation
The constellation instance this behavior belongs to.
| IBehavior | ||
| enabled : Boolean [read-only]
Indicates whether this behavior is currently enabled.
| IBehavior | ||
| nodeRendererFilterFunction : Function
The function which determines the node renderers affected by this behavior.
| IBehavior | ||
| Method | Defined by | ||
|---|---|---|---|
|
affectsAcceleration():Boolean
Indicates whether this class affects node renderers' acceleration.
| IBehavior | ||
|
affectsNodeRenderer(nr:INodeRenderer):Boolean
Indicates whether the given node renderer is affected by this behavior.
| IBehavior | ||
|
affectsPosition():Boolean
Indicates whether this class affects node renderers' position.
| IBehavior | ||
|
affectsVelocity():Boolean
Indicates whether this class affects node renderers' velocity.
| IBehavior | ||
|
stepEnd():void
Method called at the end of a step.
| IBehavior | ||
|
stepStart():void
Method called at the beginning of a step.
| IBehavior | ||
|
Modifies the given node renderer's acceleration.
| IBehavior | ||
|
Modifies the given node renderer's position.
| IBehavior | ||
|
Modifies the given node renderer's velocity.
| IBehavior | ||
| constellation | property |
constellation:IConstellation [read-write]The constellation instance this behavior belongs to.
Implementation public function get constellation():IConstellation
public function set constellation(value:IConstellation):void
| enabled | property |
enabled:Boolean [read-only]Indicates whether this behavior is currently enabled.
Implementation public function get enabled():Boolean
| nodeRendererFilterFunction | property |
nodeRendererFilterFunction:Function [read-write]The function which determines the node renderers affected by this behavior. The filter function should take an INodeRenderer as its only parameter and return true if the node is affected and false otherwise.
Implementation public function get nodeRendererFilterFunction():Function
public function set nodeRendererFilterFunction(value:Function):void
| affectsAcceleration | () | method |
public function affectsAcceleration():BooleanIndicates whether this class affects node renderers' acceleration. This function must return true if this behavior affects acceleration.
ReturnsBoolean |
| affectsNodeRenderer | () | method |
public function affectsNodeRenderer(nr:INodeRenderer):BooleanIndicates whether the given node renderer is affected by this behavior.
Parametersnr:INodeRenderer |
Boolean |
| affectsPosition | () | method |
public function affectsPosition():BooleanIndicates whether this class affects node renderers' position. This function must return true if this behavior affects position.
ReturnsBoolean |
| affectsVelocity | () | method |
public function affectsVelocity():BooleanIndicates whether this class affects node renderers' velocity. This function must return true if this behavior affects velocity.
ReturnsBoolean |
| stepEnd | () | method |
public function stepEnd():voidMethod called at the end of a step.
| stepStart | () | method |
public function stepStart():voidMethod called at the beginning of a step.
| updateAcceleration | () | method |
public function updateAcceleration(nodeRenderer:INodeRenderer):INodeRenderer
Modifies the given node renderer's acceleration. This method will never be
called if affectsAcceleration() doesn't return true.
nodeRenderer:INodeRenderer |
INodeRenderer |
| updatePosition | () | method |
public function updatePosition(nodeRenderer:INodeRenderer):INodeRenderer
Modifies the given node renderer's position. This method will never be
called if affectsPosition() doesn't return true.
nodeRenderer:INodeRenderer |
INodeRenderer |
| updateVelocity | () | method |
public function updateVelocity(nodeRenderer:INodeRenderer):INodeRenderer
Modifies the given node renderer's velocity. This method will never be
called if affectsVelocity() doesn't return true.
nodeRenderer:INodeRenderer |
INodeRenderer |