// xyzzy.js
// OK 09 2023
(function () {
/* global AdventureJS A */
/**
* @augments {AdventureJS.Dictionary.Verb}
* @class xyzzy
* @ajsnode game.dictionary.verbs.xyzzy
* @ajsconstruct MyGame.createVerb({ "name": "xyzzy", [...] });
* @ajsconstructedby AdventureJS.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb that performs an arbitrary action.
* @tutorial BasicVerbs_Subscriptions
* @tutorial Reference_HowAVerbIsBuilt
* @tutorial Reference_HowAVerbWorks
* @tutorial AdvancedVerbs_ModifyVerbs
* @tutorial AdvancedVerbs_ModifyVerbs
* @classdesc
* <div class="display">
* <div class="ajs-player-input">> xyzzy</div>
* <div class="ajs-p">A hollow voice says 'fool'.</div>
* </div>
* <p>
* If you don't know what it means, ask an old gamer. You'll make their day.
* </p>
*/
A.Dictionary.VerbDefinitions.xyzzy = {
name: "xyzzy",
prettyname: "xyzzy",
synonyms: [],
/**
* @ajsverbstructures
* @memberof xyzzy
*/
accepts_structures: ["verb"],
do: function () {
var input = this.game.getInput();
var msg = "Clever xyzzy response! ";
if (msg) this.game.print(msg, input.output_class);
return true;
},
};
})();