nape.callbacks.PreListener

type
class
extends
Listener
Event listener for Pre-Interaction type events.

Pre-Interaction type events can occur between any two Interactors (whether they be Shapes, Bodys, Compounds or a mix thereof).

Constructor

function new(interactionType:InteractionType, options1:Null<Dynamic>, options2:Null<Dynamic>, handler:PreCallback -> Null<PreFlag>, precedence:Int = 0, pure:Bool = false)
+ Construct a new PreListener.

Instance Properties hide inherited show inherited

var event : CbEvent

The CbEvent this listener responds to.

var handler : PreCallback -> Null<PreFlag>

+ Callback handler for this listener.

var interactionType : InteractionType

+ The specific type of interaction that is to be listened for.

var options1 : OptionType

The OptionType used to match against Interactors for the first object.

var options2 : OptionType

The OptionType used to match against Interactors for the second object.

var precedence : Int = 0

+ The precedence of this listener.

var pure : Bool = false

+ Mark this listener as having a pure callback handler.

var space : Null<nape.space.Space> = null

+ The Space this listener is assigned to.

readonly var type : ListenerType

The sub-type of this listener.