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

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

  var p = adventurejs.Display.prototype;

  /**
   * Set Room in status bar.
   * @method adventurejs.Display#setRoom
   * @param {String} name Sets the Status Bar's Room field.
   * @returns {adventurejs.Display} Returns the instance the method is called on (useful for chaining calls.)
   * @chainable
   */
  p.setRoomName = function Display_setRoomName(name) {
    this.roomEl.innerHTML = name;
    return this;
  };
})();