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

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

  var p = adventurejs.Game.prototype;

  /**
   *
   * @method adventurejs.Game#printRoomExits
   * @memberOf adventurejs.Game
   * @param {Object} room A room to be printed. Defaults to current room.
   */
  p.printRoomExits = p.$printExits = function Game_printRoomExits(
    room = this.world[this.world._room]
  ) {
    var exits = this.getRoomExits();
    if (exits) this.print(exits);
    return true;
  };
})();