var Class = require('../../utils/Class'); var Components = require('./animation/'); var Animation = new Class({ initialize: function Animation(parent){ this.parent = parent; this.animationManager = parent.scene.sys.anims; this.animationManager.events.once('REMOVE_ANIMATION_EVENT', this.remove.bind(this)); this.isPlaying = false ; this.currentAnim = null ; this.currentFrame = null ; this._timeScale = 1; this.frameRate = 0; this.duration = 0; this.msPerFrame = 0; this.skipMissedFrames = true ; this._delay = 0; this._repeat = 0; this._repeatDelay = 0; this._yoyo = false ; this.forward = true ; this.accumulator = 0; this.nextTick = 0; this.repeatCounter = 0; this.pendingRepeat = false ; this._paused = false ; this._wasPlaying = false ; this._callbackArgs = [parent, null ] ; this._updateParams = [] ; } , destroy: function (){ } , delay: Components.Delay, delayedPlay: Components.DelayedPlay, getCurrentKey: Components.GetCurrentKey, load: Components.Load, pause: Components.Pause, paused: Components.Paused, play: Components.Play, progress: Components.Progress, remove: Components.Remove, repeat: Components.Repeat, repeatDelay: Components.RepeatDelay, restart: Components.Restart, resume: Components.Resume, stop: Components.Stop, timeScale: Components.TimeScale, totalFrames: Components.TotalFrames, totalProgress: Components.TotalProgress, update: Components.Update, updateFrame: Components.UpdateFrame, yoyo: Components.Yoyo} ); module.exports = Animation;