Skip to main content

EaseTo

Used for implementing actions for the Action API.

Implements

Index

Constructors

constructor

  • new EaseTo(entity: Entity<any>, x: number, y: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number): EaseTo
  • Parameters

    • entity: Entity<any>
    • x: number
    • y: number
    • duration: number
    • easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

      Returns EaseTo

    Properties

    publiceasingFcn

    easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

    Type declaration

      • (currentTime: number, startValue: number, endValue: number, duration: number): number
      • Parameters

        • currentTime: number
        • startValue: number
        • endValue: number
        • duration: number

        Returns number

    id

    id: number = ...

    Methods

    publicisComplete

    • isComplete(): boolean
    • Returns boolean

    publicreset

    • reset(): void
    • Returns void

    publicstop

    • stop(): void
    • Returns void

    publicupdate

    • update(elapsedMs: number): void
    • Parameters

      • elapsedMs: number

      Returns void