// restart.js
(function () {
/* global AdventureJS A */
/**
* @augments {AdventureJS.Dictionary.Verb}
* @class restart
* @ajsnode game.dictionary.verbs.restart
* @ajsconstruct MyGame.createVerb({ "name": "restart", [...] });
* @ajsconstructedby AdventureJS.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb meaning restart the game.
* @tutorial BasicVerbs_Subscriptions
* @tutorial Reference_HowAVerbIsBuilt
* @tutorial Reference_HowAVerbWorks
* @tutorial AdvancedVerbs_ModifyVerbs
* @tutorial AdvancedVerbs_ModifyVerbs
* @classdesc
* <div class="display">
* <div class="ajs-player-input">> restart</div>
* Restarting...
* </pre>
* <p>
* <strong>restart</strong> restarts the game.
* </p>
*/
A.Dictionary.VerbDefinitions.restart = {
name: "restart",
synonyms: [""],
past_tense: "restarted",
gerund: "restarting",
/**
* @ajsverbstructures
* @memberof restart
*/
accepts_structures: ["verb", "verb noun"],
/**
* @memberof restart
* @ajsverbphrase
* phrase1:
* {
* accepts_noun: true,
* requires_noun: true,
* },
*/
phrase1: {
accepts_noun: true,
},
let_verb_handle_disambiguation: true,
let_verb_handle_remaining_input: true,
msgNoObject: "You can't quit, you're fired!",
do: function () {
var input = this.game.getInput();
this.game.log("L1577", "log", "high", "restart ", "verbs");
// @TODO
let msg = `You restart... `;
return this.handleSuccess(msg);
},
};
})();