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

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

  var p = adventurejs.Game.prototype;

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