Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MoveBy

Hierarchy

  • MoveBy

Implements

Index

Constructors

constructor

  • new MoveBy(actor: Actor, destx: number, desty: number, time: number): MoveBy
  • Parameters

    • actor: Actor
    • destx: number
    • desty: number
    • time: number

    Returns MoveBy

Properties

Private _actor

_actor: Actor

Private _dir

_dir: Vector

Private _distance

_distance: number

Private _end

_end: Vector

Private _speed

_speed: number

Private _start

_start: Vector

Private _started

_started: boolean = false

Private _stopped

_stopped: boolean = false

Private _time

_time: number

x

x: number

y

y: number

Methods

isComplete

  • isComplete(actor: Actor): boolean
  • Parameters

    Returns boolean

reset

  • reset(): void
  • Returns void

stop

  • stop(): void
  • Returns void

update

  • update(delta: Number): void
  • Parameters

    • delta: Number

    Returns void