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

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

  var p = adventurejs.Game.prototype;

  /**
   *
   * @method adventurejs.Game#printCurrentRoomContents
   * @memberOf adventurejs.Game
   */
  p.printCurrentRoomContents = function Game_printCurrentRoomContents() {
    this.game.log("L1050", "log", 1, "Game.printCurrentRoomContents", "Game");
    var contents = this.listRoomContents(this.world[this.world._currentRoom]);
    if (contents) this.print(contents);
    return true;
  };
})();