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 = p.exits = function Game_getExits() {
    return this.getAsset(this.world._room).getExits();
  };
})();