Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GameEvent<T, U>

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.

Type parameters

  • T

  • U

Hierarchy

Index

Properties

Methods

Properties

bubbles

bubbles: boolean = true

If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.

other

other: U | null

Other target object for this event

target

target: T

Target object for this event.

Methods

stopPropagation

  • stopPropagation(): void
  • Prevents event from bubbling

    Returns void