Packagestencyl.api.engine.behavior
Classpublic class BehaviorManager
InheritanceBehaviorManager Inheritance Object



Public Properties
 PropertyDefined By
  behaviors : Array
BehaviorManager
  cache : Object
BehaviorManager
  collisionHandlers : Array
BehaviorManager
  postDrawBehaviors : Array
BehaviorManager
  preDrawBehaviors : Array
BehaviorManager
Public Methods
 MethodDefined By
  
BehaviorManager
  
add(b:Behavior):void
BehaviorManager
  
call(msg:String, args:Array):Object
BehaviorManager
  
call2(behaviorName:String, msg:String, args:Array):Object
BehaviorManager
  
destroy():void
BehaviorManager
  
disableBehavior(b:String):void
BehaviorManager
  
enableBehavior(b:String):void
BehaviorManager
  
getAttribute(behaviorName:String, attributeName:String):Object
BehaviorManager
  
hasBehavior(b:String):Boolean
BehaviorManager
  
BehaviorManager
  
isBehaviorEnabled(b:String):Boolean
BehaviorManager
  
postDraw(g:Graphics, x:Number, y:Number, screen:Boolean = false):void
BehaviorManager
  
preDraw(g:Graphics, x:Number, y:Number, screen:Boolean = false):void
BehaviorManager
  
BehaviorManager
  
setAttribute(behaviorName:String, attributeName:String, value:Object):void
BehaviorManager
  
update():void
BehaviorManager
  
updateSnippetOrder(b:Behavior, newOrder:Number, newDrawOrder:Number):void
BehaviorManager
Property Detail
behaviorsproperty
public var behaviors:Array

cacheproperty 
public var cache:Object

collisionHandlersproperty 
public var collisionHandlers:Array

postDrawBehaviorsproperty 
public var postDrawBehaviors:Array

preDrawBehaviorsproperty 
public var preDrawBehaviors:Array

Constructor Detail
BehaviorManager()Constructor
public function BehaviorManager()



Method Detail
add()method
public function add(b:Behavior):void

Parameters

b:Behavior

call()method 
public function call(msg:String, args:Array):Object

Parameters

msg:String
 
args:Array

Returns
Object
call2()method 
public function call2(behaviorName:String, msg:String, args:Array):Object

Parameters

behaviorName:String
 
msg:String
 
args:Array

Returns
Object
destroy()method 
public function destroy():void

disableBehavior()method 
public function disableBehavior(b:String):void

Parameters

b:String

enableBehavior()method 
public function enableBehavior(b:String):void

Parameters

b:String

getAttribute()method 
public function getAttribute(behaviorName:String, attributeName:String):Object

Parameters

behaviorName:String
 
attributeName:String

Returns
Object
hasBehavior()method 
public function hasBehavior(b:String):Boolean

Parameters

b:String

Returns
Boolean
initScripts()method 
public function initScripts():void

isBehaviorEnabled()method 
public function isBehaviorEnabled(b:String):Boolean

Parameters

b:String

Returns
Boolean
postDraw()method 
public function postDraw(g:Graphics, x:Number, y:Number, screen:Boolean = false):void

Parameters

g:Graphics
 
x:Number
 
y:Number
 
screen:Boolean (default = false)

preDraw()method 
public function preDraw(g:Graphics, x:Number, y:Number, screen:Boolean = false):void

Parameters

g:Graphics
 
x:Number
 
y:Number
 
screen:Boolean (default = false)

registerCollisionHandler()method 
public function registerCollisionHandler(b:Behavior):void

Parameters

b:Behavior

setAttribute()method 
public function setAttribute(behaviorName:String, attributeName:String, value:Object):void

Parameters

behaviorName:String
 
attributeName:String
 
value:Object

update()method 
public function update():void

updateSnippetOrder()method 
public function updateSnippetOrder(b:Behavior, newOrder:Number, newDrawOrder:Number):void

Parameters

b:Behavior
 
newOrder:Number
 
newDrawOrder:Number