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

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

  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._room).$exits();
  };
})();