Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AnimationManager

Index

Constructors

constructor

Properties

animations

animations: Animation[]
memberof

AnimationManager

description

Animations that are registered and added to the AnimationManager

since

2.0.0

currentAnimation

currentAnimation: Animation
memberof

AnimationManager

description

The current selected animation, last played or currently playing

since

2.0.0

game

game: Game
memberof

AnimationManager

description

Game instance

since

2.0.0

scene

scene: Scene
memberof

AnimationManager

description

Scene instance

since

2.0.0

sprite

sprite: Sprite
memberof

AnimationManager

description

Sprite that the AnimationManager is attached to

since

2.0.0

Methods

add

clear

  • clear(): void

createStateMachine

get

  • memberof

    AnimationManager

    description

    Finds and returns an Animation from the array of animations (AnimationManager#animations)

    since

    2.0.0

    Parameters

    • key: string

      Key of the Animation find

    Returns undefined | Animation

getIndex

  • getIndex(key: string): number
  • memberof

    AnimationManager

    description

    Finds and returns the index of an Animation from the array of animations (AnimationManager#animations)

    since

    2.0.0

    Parameters

    • key: string

      Key of the Animation find the index of

    Returns number

pause

  • pause(): void

pauseReverse

  • pauseReverse(): void

play

  • play(): void

playReverse

  • playReverse(): void

remove

  • remove(key: string): void
  • memberof

    AnimationManager

    description

    Removes an Animation from the array of animations (AnimationManager#animations)

    since

    2.0.0

    Parameters

    • key: string

      Key of the Animation to remove

    Returns void

restart

  • restart(): void

restartReverse

  • restartReverse(): void

resume

  • resume(): void

resumeReverse

  • resumeReverse(): void

setCurrentAnimation

  • setCurrentAnimation(key: string): void
  • memberof

    AnimationManager

    description

    Sets the current animation

    since

    2.0.0

    Parameters

    • key: string

      Key of the Animation to set as the currentAnimation

    Returns void

setRepeat

  • setRepeat(repeat: number): void

setRepeatReverse

  • setRepeatReverse(repeat: number): void

stop

  • stop(): void

stopReverse

  • stopReverse(): void

Generated using TypeDoc