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

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

  var p = adventurejs.Game.prototype;

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