Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MovementHandler

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    Returns MovementHandler

Properties

Readonly event

event: IEventEmitter<this, IMovementHandlerEvents> = new EventEmitter<this, E>(this)

Readonly walkToTileHandler

walkToTileHandler: WalkToTileHandler = new WalkToTileHandler(this.gameScreen)

Methods

deregister

  • deregister(): this
  • Returns this

Protected onFaceDirection

  • Parameters

    Returns boolean

Protected onFaceDown

  • Parameters

    Returns boolean

Protected onIdle

  • onIdle(): boolean
  • Returns boolean

Protected onMove

  • Parameters

    Returns boolean

Protected onMoveComplete

  • onMoveComplete(): void
  • Returns void

Protected onMoveDirection

  • Parameters

    Returns boolean

Protected onMoveStart

  • onMoveStart(): void
  • Returns void

Protected onMoveToTile

  • onMoveToTile(): boolean
  • Returns boolean

Protected onPlayerDamage

  • onPlayerDamage(_: any, damageInfo: IDamageInfo): void
  • Parameters

    Returns void

Protected onPlayerDeath

  • onPlayerDeath(): void
  • Returns void

Protected onReleaseMoveBind

  • Parameters

    Returns void

register

  • register(): this
  • Returns this

Generated using TypeDoc