Callback Type applied to Interactors and Constraints.

Callback types are ranged over by listeners.

Static variables

staticread onlyANY_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)

staticread onlyANY_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)

staticread onlyANY_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)

staticread onlyANY_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)

Constructor

new()

Construct a new CbType object.

Returns:

A new CbType.

Variables

@:value(null)zpp_inner:ZPP_CbType = null

@private

read onlyid:Int

Unique identifier for this CbType.

read onlyuserData:Dynamic<Dynamic>

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.

read onlyinteractors: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.

read onlyconstraints: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.

Methods

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>

Parameters:

includes

The CbTypes to include.

Returns:

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

Throws:

#

If includes is null.

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>

Parameters:

excludes

The CbTypes to exclude.

Returns:

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

Throws:

#

If excludes is null.

@:keeptoString():String

@private