Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SetAction

Hierarchy

  • ActionInstant
    • SetAction

Index

Constructors

constructor

Properties

_duration

_duration: number = 0

Private _props

_props: any

_timesForRepeat

_timesForRepeat: number = 1

Protected originalTarget

originalTarget: Node | null = null

Protected tag

tag: number = Action.TAG_INVALID

Protected target

target: Node | null = null

Static TAG_INVALID

TAG_INVALID: number = -1

Default Action tag.

constant
static
default

-1

Methods

clone

getDuration

  • getDuration(): number

getOriginalTarget

  • getOriginalTarget(): Node | null

getTag

  • getTag(): number

getTarget

  • getTarget(): Node | null

init

  • init(props: any): boolean

isDone

  • isDone(): boolean

release

  • release(): void

retain

  • retain(): void

reverse

  • reverse(): Action
  • returns a reversed action.
    For example:

    • The action is x coordinates of 0 move to 100.
    • The reversed action will be x of 100 move to 0.

    Returns Action

setDuration

  • setDuration(duration: number): void
  • set duration of the action. (seconds).

    method

    setDuration

    Parameters

    • duration: number

    Returns void

setOriginalTarget

  • setOriginalTarget(originalTarget: any): void

setTag

  • setTag(tag: number): void

setTarget

  • setTarget(target: Node): void

startWithTarget

  • startWithTarget(target: any): void

step

  • step(dt: any): void

stop

  • stop(): void

update

  • update(): void

Generated using TypeDoc