Package | stencyl.api.engine.behavior |
Class | public class BehaviorManager |
Inheritance | BehaviorManager Object |
Property | Defined By | ||
---|---|---|---|
behaviors : Array | BehaviorManager | ||
cache : Object | BehaviorManager | ||
collisionHandlers : Array | BehaviorManager | ||
postDrawBehaviors : Array | BehaviorManager | ||
preDrawBehaviors : Array | BehaviorManager |
Method | Defined By | ||
---|---|---|---|
BehaviorManager | |||
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 | ||
initScripts():void | BehaviorManager | ||
isBehaviorEnabled(b:String):Boolean | BehaviorManager | ||
BehaviorManager | |||
BehaviorManager | |||
registerCollisionHandler(b:Behavior):void | BehaviorManager | ||
setAttribute(behaviorName:String, attributeName:String, value:Object):void | BehaviorManager | ||
update():void | BehaviorManager | ||
updateSnippetOrder(b:Behavior, newOrder:Number, newDrawOrder:Number):void | BehaviorManager |
behaviors | property |
public var behaviors:Array
cache | property |
public var cache:Object
collisionHandlers | property |
public var collisionHandlers:Array
postDrawBehaviors | property |
public var postDrawBehaviors:Array
preDrawBehaviors | property |
public var preDrawBehaviors:Array
BehaviorManager | () | Constructor |
public function BehaviorManager()
add | () | method |
call | () | method |
public function call(msg:String, args:Array):Object
Parameters
msg:String | |
args:Array |
Object |
call2 | () | method |
public function call2(behaviorName:String, msg:String, args:Array):Object
Parameters
behaviorName:String | |
msg:String | |
args:Array |
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 |
Object |
hasBehavior | () | method |
public function hasBehavior(b:String):Boolean
Parameters
b:String |
Boolean |
initScripts | () | method |
public function initScripts():void
isBehaviorEnabled | () | method |
public function isBehaviorEnabled(b:String):Boolean
Parameters
b:String |
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 |
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 |