Skip to main content

MoveBy

Used for implementing actions for the Action API.

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new MoveBy(entity: Entity<any>, offsetX: number, offsetY: number, speed: number): MoveBy
  • Parameters

    • entity: Entity<any>
    • offsetX: number
    • offsetY: number
    • speed: number

    Returns MoveBy

Properties

id

id: number = ...

publicx

x: number

publicy

y: number

Methods

publicisComplete

  • isComplete(entity: Entity<any>): boolean
  • Parameters

    Returns boolean

publicreset

  • reset(): void
  • Returns void

publicstop

  • stop(): void
  • Returns void

publicupdate

  • update(elapsed: number): void
  • Parameters

    • elapsed: number

    Returns void