Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActionInstant

!#en Instant actions are immediate actions. They don't have a duration like the ActionInterval actions. !#zh 即时动作,这种动作立即就会执行,继承自 FiniteTimeAction。

Hierarchy

Index

Properties

_duration

_duration: number = 0

_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

!#en Default Action tag. !#zh 默认动作标签。

constant
static
default

-1

Methods

clone

getDuration

  • getDuration(): number

getOriginalTarget

  • getOriginalTarget(): Node | null

getTag

  • getTag(): number

getTarget

  • getTarget(): Node | null

isDone

  • isDone(): boolean

release

  • release(): void

retain

  • retain(): void

reverse

setDuration

  • setDuration(duration: number): 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(dt: number): void

Generated using TypeDoc