Skip to content

Commit 7c9a5b4

Browse files
committed
Adding jsdocs
1 parent bb97421 commit 7c9a5b4

14 files changed

Lines changed: 221 additions & 8 deletions

v3/src/animation/manager/AnimationManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var Class = require('../../utils/Class');
22
var EventDispatcher = require('../../events/EventDispatcher');
3-
var Map = require('../../structs/Map');
3+
var CustomMap = require('../../structs/Map');
44

55
// Animations are managed by the global AnimationManager. This is a singleton class that is
66
// responsible for creating and delivering animations and their corresponding data to all Game Objects.
@@ -60,7 +60,7 @@ var AnimationManager = new Class({
6060
* @property {Phaser.Structs.Map} anims
6161
* @protected
6262
*/
63-
this.anims = new Map();
63+
this.anims = new CustomMap();
6464

6565
/**
6666
* [description]

v3/src/animation/manager/events/AddAnimationEvent.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ var AddAnimationEvent = new Class({
77

88
initialize:
99

10+
/**
11+
* [description]
12+
*
13+
* @event AddAnimationEvent
14+
* @type {Phaser.Event}
15+
*
16+
* @param {string} key - [description]
17+
* @param {Phaser.Animations.Animation} animation - [description]
18+
*/
1019
function AddAnimationEvent (key, animation)
1120
{
1221
Event.call(this, 'ADD_ANIMATION_EVENT');

v3/src/animation/manager/events/PauseAllAnimationEvent.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ var PauseAllAnimationEvent = new Class({
77

88
initialize:
99

10+
/**
11+
* [description]
12+
*
13+
* @event PauseAllAnimationEvent
14+
* @type {Phaser.Event}
15+
*/
1016
function PauseAllAnimationEvent ()
1117
{
1218
Event.call(this, 'PAUSE_ALL_ANIMATION_EVENT');

v3/src/animation/manager/events/RemoveAnimationEvent.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ var RemoveAnimationEvent = new Class({
77

88
initialize:
99

10+
/**
11+
* [description]
12+
*
13+
* @event RemoveAnimationEvent
14+
* @type {Phaser.Event}
15+
*
16+
* @param {string} key - [description]
17+
* @param {Phaser.Animations.Animation} animation - [description]
18+
*/
1019
function RemoveAnimationEvent (key, animation)
1120
{
1221
Event.call(this, 'REMOVE_ANIMATION_EVENT');

v3/src/animation/manager/events/ResumeAllAnimationEvent.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ var ResumeAllAnimationEvent = new Class({
77

88
initialize:
99

10+
/**
11+
* [description]
12+
*
13+
* @event ResumeAllAnimationEvent
14+
* @type {Phaser.Event}
15+
*/
1016
function ResumeAllAnimationEvent ()
1117
{
1218
Event.call(this, 'RESUME_ALL_ANIMATION_EVENT');

v3/src/animation/manager/inc/AddAnimation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var Event = require('../events/');
44
* [description]
55
*
66
* @method Phaser.Animations.AnimationManager#add
7+
* @fires AddAnimationEvent
78
* @since 3.0.0
89
*
910
* @param {string} key - [description]

v3/src/animation/manager/inc/CreateFrameAnimation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ var Animation = require('../../frame/Animation');
55
* [description]
66
*
77
* @method Phaser.Animations.AnimationManager#create
8+
* @fires AddAnimationEvent
89
* @since 3.0.0
910
*
1011
* @param {object} config - [description]

v3/src/animation/manager/inc/PauseAll.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var Event = require('../events/');
44
* [description]
55
*
66
* @method Phaser.Animations.AnimationManager#pauseAll
7+
* @fires PauseAllAnimationEvent
78
* @since 3.0.0
89
*
910
* @return {Phaser.Animations.AnimationManager} The Animation Manager for method chaining.

v3/src/animation/manager/inc/RemoveAnimation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var Event = require('../events/');
44
* [description]
55
*
66
* @method Phaser.Animations.AnimationManager#remove
7+
* @fires RemoveAnimationEvent
78
* @since 3.0.0
89
*
910
* @param {string} key - [description]

v3/src/animation/manager/inc/ResumeAll.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var Event = require('../events/');
44
* [description]
55
*
66
* @method Phaser.Animations.AnimationManager#resumeAll
7+
* @fires ResumeAllAnimationEvent
78
* @since 3.0.0
89
*
910
* @return {Phaser.Animations.AnimationManager} The Animation Manager for method chaining.

0 commit comments

Comments
 (0)