Merge pull request #299 from Niondir/dev

Phaser Definitions Update
This commit is contained in:
Richard Davey
2014-01-08 17:02:59 -08:00
2 changed files with 49 additions and 8 deletions
+14 -2
View File
@@ -280,7 +280,8 @@ Phaser.StateManager.prototype = {
},
/**
* Description.
* Checks i a given phaser state is valid.
* State must exist and have at least one callback function registered..
* @method Phaser.StateManager#checkState
* @param {string} key - The key of the state you want to check.
* @return {boolean} Description.
@@ -347,7 +348,7 @@ Phaser.StateManager.prototype = {
* Sets the current State. Should not be called directly (use StateManager.start)
* @method Phaser.StateManager#setCurrentState
* @param {string} key - State key.
* @protected
* @private
*/
setCurrentState: function (key) {
@@ -377,6 +378,17 @@ Phaser.StateManager.prototype = {
},
/**
* Gets the current State.
*
* @method Phaser.StateManager#getCurrentState
* @return Phaser.State
* @public
*/
getCurrentState: function() {
return this.states[this.current];
},
/**
* @method Phaser.StateManager#loadComplete
* @protected