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

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

  var p = adventurejs.Game.prototype;

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