class nape.callbacks.CbType

Available on all platforms

Callback Type applied to Interactors and Constraints. *

* Callback types are ranged over by listeners.

Class Fields

static var ANY_BODY:CbType

Default CbType given to all Bodys * * Due to the way the Callback system in Nape works, you can use this * CbType to match against 'all' * Bodys * In a Listener (Assuming you do not 'remove' this type from the object)

static var ANY_COMPOUND:CbType

Default CbType given to all Compounds * * Due to the way the Callback system in Nape works, you can use this * CbType to match against 'all' * Compounds * In a Listener (Assuming you do not 'remove' this type from the object)

static var ANY_CONSTRAINT:CbType

Default CbType given to all Constraints * * Due to the way the Callback system in Nape works, you can use this * CbType to match against 'all' * Constraints * In a Listener (Assuming you do not 'remove' this type from the object)

static var ANY_SHAPE:CbType

Default CbType given to all Shapes * * Due to the way the Callback system in Nape works, you can use this * CbType to match against 'all' * Shapes * In a Listener (Assuming you do not 'remove' this type from the object)

Instance Fields

var constraints:ConstraintList

List of all Constraints using this CbType. *

* This list contains only those Constraints that are inside of a Space *

* This list is not only readonly, but also immutable.

var id:Int

Unique identifier for this CbType.

var interactors:InteractorList

List of all Interactors using this CbType. *

* This list contains only those Interactors that are inside of a Space *

* This list is not only readonly, but also immutable.

var userData:DynamicDynamic

Dynamic object for user to store additional data. *

* This object cannot be set, only its dynamically created * properties may be set. In AS3 the type of this property is &#42 *

* This object will be lazily constructed so that until accessed * for the first time, will be null internally. * * @default {}

var zpp_inner:ZPP_CbType

@private

function new():Void

Construct a new CbType object. * *

returns

A new CbType.

function excluding(excludes:Dynamic):OptionType

Construct OptionType with given excludes. *

* Equivalent to new OptionType(this).excluding(excludes) *

* The excludes argument is typed Dynamic, and is permitted to be one of: * CbType, CbTypeList, Array<CbType>, flash.Vector<CbType> * *

excludes

The CbTypes to exclude. *

returns

A new OptionType whose included types are just 'this' and whose excluded types are those given as argument.

function including(includes:Dynamic):OptionType

Construct OptionType with given extra includes. *

* Equivalent to new OptionType(this).including(includes) *

* The includes argument is typed Dynamic, and is permitted to be one of: * CbType, CbTypeList, Array<CbType>, flash.Vector<CbType> * *

includes

The CbTypes to include. *

returns

A new OptionType whose includes are equal to this CbType and all the CbTypes given as argument.

function toString():String

@private