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

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

	var p = adventurejs.Game.prototype;

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