Scriptable

Mixin for entities that can have behaviors attached from a BehaviorManager

Methods

getBehavior(name) → {*}

Parameters:
Name Type Description
name string
Returns:
*

hasBehavior(name) → {boolean}

Parameters:
Name Type Description
name string
Returns:
boolean

setupBehaviors(manager)

Attach this entity's behaviors from the manager

Parameters:
Name Type Description
manager BehaviorManager