Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// getNest.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Character.prototype;	
  /**
   * Returns the ID of character asset's nest parent 
   * or a blank string.
   * @memberOf adventurejs.Character
	 * @method adventurejs.Character#getNest
   * @return {String}
   */
   p.getNest = function Character_getNest()
   {
    // if( "undefined" === typeof this.nest 
    // || Object.keys( this.nest ).length === 0 ) 
    // {
    //   return "";
    // }
    // return this.nest[ Object.keys( this.nest )[0] ];
    return this.nest;
  }
}());