// again.js
(function () {
/* global AdventureJS A */
/**
* @augments {AdventureJS.Dictionary.Verb}
* @class again
* @ajsnode game.dictionary.verbs.again
* @ajsconstruct MyGame.createVerb({ "name": "again", [...] });
* @ajsconstructedby AdventureJS.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb meaning repeat last turn's input.
* @ajssynonyms again, g
* @tutorial BasicVerbs_Subscriptions
* @tutorial Reference_HowAVerbIsBuilt
* @tutorial Reference_HowAVerbWorks
* @tutorial AdvancedVerbs_ModifyVerbs
* @tutorial AdvancedVerbs_ModifyVerbs
* @classdesc
* <div class="display">
* <div class="ajs-player-input">> jump on bed</div>
* <div class="ajs-p">You jump up and down on the bed for a bit.</div>
*
* <div class="ajs-player-input">> again</div>
* <div class="ajs-p">You jump up and down on the bed for a bit.</div>
* </div>
* <p>
* <strong>again</strong> repeats the last turn. It has no
* executable code of its own and is only used by the parser.
* It does not support verb subscriptions.
* </p>
*/
A.Dictionary.VerbDefinitions.again = {
name: "again",
synonyms: ["again", "g"],
// again.do should never execute.
// splitByPeriods.js looks for "again" in input
// and replaces it with the prior turn's input.
/**
* @ajsverbstructures
* @memberof again
*/
accepts_structures: ["verb"],
do: function () {
this.game.log(
"L1365",
"error",
"high",
"again.do fired, but it never should because again is handled by parser.",
"verbs"
);
return null;
},
};
})(); // again