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

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

  var p = adventurejs.Display.prototype;

  /**
   * Update all visual elements of the display.
   * @method adventurejs.Display#update
   * @returns {adventurejs.Display} Returns the instance the method is called on (useful for chaining calls.)
   * @chainable
   */
  p.update = function Display_update() {
    // this.updateVerbDocks();
    this.updateInventoryDocks();
    this.updateCompasses();
    this.updateRoom();
    this.updateRoomImage();
    this.updateRoomDocks();
    this.updateContentDocks();
    this.updateExitDocks();
  };
})();