CbType

nape.callbacks.CbType (final class)

Callback Type applied to Interactors and Constraints.

Callback types are ranged over by listeners.

Static Members

nape
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)


nape
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)


nape
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)


nape
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)

Instance Members

@private


nape
id: Int

Unique identifier for this CbType.


nape
userData: 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.

@default {}


nape
interactors: nape.phys.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.


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.


nape
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>

Name Type Description
includes Dynamic The CbTypes to include.
Returns Description
OptionType A new OptionType whose includes are equal to this CbType and all the CbTypes given as argument.

nape
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>

Name Type Description
excludes Dynamic The CbTypes to exclude.
Returns Description
OptionType A new OptionType whose included types are just 'this' and whose excluded types are those given as argument.

nape
toString(): String

@private

Returns
String

nape
new(): Void

Construct a new CbType object.

Private Members

Metadata

Name Parameters
:final -