Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getRoom.js

(function () {
  /* global adventurejs A */

  var p = adventurejs.Game.prototype;

  /**
   * Convenience method to get the current room asset.
   * @method adventurejs.Game#getRoom
   * @memberOf adventurejs.Game
   * @returns {Object}
   */
  p.getRoom = p.$room = function Game_getRoom() {
    return this.getAsset(this.world._room);
  };
})();