// restore.js
(function () {
/* global AdventureJS A */
/**
* @augments {AdventureJS.Dictionary.Verb}
* @class restore
* @ajsnode game.dictionary.verbs.restore
* @ajsconstruct MyGame.createVerb({ "name": "restore", [...] });
* @ajsconstructedby AdventureJS.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb used to initiate restoring a saved 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">> restore</div>
* </div>
* <p>
* <strong>Restore</strong> brings up the 'restore game' panel,
* </p>
*/
A.Dictionary.VerbDefinitions.restore = {
name: "restore",
synonyms: ["restore game"],
verb_prep_noun: ["restore game"],
past_tense: "restored",
gerund: "restoring",
can_try: true,
/**
* @ajsverbstructures
* @memberof restore
*/
accepts_structures: ["verb"],
do: function () {
this.game.log(
"L1373",
"log",
"high",
"Opening restore manager.",
"verbs"
);
this.game.restoreManager.openDialog();
return true;
},
};
})();