// score.js
(function () {
/* global adventurejs A */
/**
* @augments {adventurejs.Verb}
* @class score
* @ajsnode game.dictionary.verbs.score
* @ajsconstruct MyGame.createVerb({ "name": "score", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading UtilityVerbs
* @summary Verb used to print the game score.
* @tutorial BasicVerbs_Subscriptions
* @tutorial AdvancedVerbs_VerbAnatomy
* @tutorial AdvancedVerbs_VerbProcess
* @tutorial AdvancedVerbs_ModifyVerbs
* @tutorial AdvancedVerbs_ModifyVerbs
* @classdesc
* <pre class="display border outline">
* <span class="ajs-player-input">> score</span>
* </pre>
* <p>
* <strong>Score</strong> prints the game score,
* </p>
*/
A.Preverbs.score = {
name: "score",
synonyms: ["points"],
verb_prep_noun: ["get score", "show score"],
/**
* @ajsverbstructures
* @memberof score
*/
accepts_structures: ["verb"],
do: function () {
this.game.log("L1587", "log", "high", "score", "verbs");
let msg = "";
msg = this.game.scorecard.itemizePoints();
if (msg) this.game.print(msg, "");
return true;
},
};
})();