// info.js
(function () {
/* global AdventureJS A */
/**
* @augments {AdventureJS.Dictionary.Verb}
* @class info
* @ajsnode game.dictionary.verbs.info
* @ajsconstruct MyGame.createVerb({ "name": "info", [...] });
* @ajsconstructedby AdventureJS.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb meaning replace unknown word with new input.
* @tutorial BasicVerbs_Subscriptions
* @tutorial Reference_HowAVerbIsBuilt
* @tutorial Reference_HowAVerbWorks
* @tutorial AdvancedVerbs_ModifyVerbs
* @tutorial AdvancedVerbs_ModifyVerbs
* @classdesc
* <div class="display">
* <div class="ajs-player-input">> info</div>
* <div class="ajs-p"><b>Desert Drifter</b><br/>
* Version 0.0.1<br/>
* By Ivan Cockrum</div>
*
* <div class="ajs-p">It was foolish to step away from the camel string. You were quickly separated by the raging sandstorm. All it took was one, two, three steps, before the buffeting wind had you completely disoriented. Now you are lost with nothing but an empty water skin.</div>
* </div>
* <p>
* <strong>Info</strong> prints metadata about the game.
* </p>
*/
A.Dictionary.VerbDefinitions.info = {
name: "info",
synonyms: [],
/**
* @ajsverbstructures
* @memberof info
*/
accepts_structures: ["verb"],
/**
* @memberof info
* @ajsverbphrase
* phrase1:
* {
* },
*/
phrase1: {},
do: function () {
let msg =
this.game.settings.info_text ||
`
<b>{title}</b> <br>
Version {version} <br>
By <em>{author}</em> <br>
<br>
{description}
`;
this.game.print(msg);
},
};
})();