Skip to main content

NativeSoundEvent

Base event type in Excalibur that all other event types derive from. Not all event types are thrown on all Excalibur game objects, some events are unique to a type, others are not.

Hierarchy

Index

Constructors

constructor

Properties

publicinheritedother

other: Sound | null = null

Other target object for this event

publicinheritedtarget

target: Sound

Target object for this event.

publicoptionaltrack

Accessors

publicinheritedbubbles

  • get bubbles(): boolean
  • set bubbles(_value: boolean): void
  • Media event cannot bubble


    Returns boolean

  • Media event cannot bubble


    Parameters

    • _value: boolean

    Returns void

Methods

publicinheritedaction

  • action(): void
  • Action, that calls when event happens


    Returns void

publicinheritedlayPath

  • layPath(_actor: Actor): void
  • Parameters

    Returns void

publicinheritedpropagate

  • propagate(): void
  • Propagate event further through event path


    Returns void

publicinheritedstopPropagation

  • stopPropagation(): void
  • Prevents event from bubbling


    Returns void