// printInput.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Display.prototype;
/**
* Print the player's input back to game display.
* @memberOf adventurejs.Display
* @method adventurejs.Display#printInput
* @param {String} input An arbitrary string.
*/
p.printInput = function Display_printInput(input) {
if ("undefined" !== typeof input) {
this.print("> " + input, "input");
return;
}
if (this.game.parser.getInputCount() > 0) {
this.print("> " + this.game.parser.getLastInput(), "input");
return;
}
};
})();