Skip to main content

MoveTo

Used for implementing actions for the [[ActionContext|Action API]].

Implements

Index

Constructors

constructor

  • new MoveTo(entity: Entity<any>, destx: number, desty: number, speed: number): MoveTo
  • Parameters

    • entity: Entity<any>
    • destx: number
    • desty: number
    • speed: number

    Returns MoveTo

Properties

publicentity

entity: Entity<any>

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(_delta: number): void
  • Parameters

    • _delta: number

    Returns void