Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// $exits.js

(function () {
  /*global adventurejs A*/
  "use strict";

  var p = adventurejs.Game.prototype;

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