// wait.js
// OK 09 2023
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class wait
* @ajsnode game.dictionary.verbs.wait
* @ajsconstruct MyGame.createVerb({ "name": "wait", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb that waits for one turn.
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @classdesc
* <pre class="display border outline">
* <span class="input">> wait</span>
* You wait one turn. Three buses arrive.
* </pre>
* <p>
* <code>Wait</code> one turn.
* </p>
*/
A.Preverbs.wait = {
name: "wait",
past_tense: "waited",
synonyms: ["wait", "z"],
/**
* @ajsverbstructures
* @memberof wait
* @TODO wait for x minutes or x turns
*/
accepts_structures: ["verb"],
do: function () {
var input = this.game.getInput();
// TODO passage of time
this.game.print("$(We) wait a turn.", input.output_class);
return true;
},
};
})();