// score.js
(function () {
/* global AdventureJS A */
/**
* @augments {AdventureJS.Dictionary.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 Reference_HowAVerbIsBuilt
* @tutorial Reference_HowAVerbWorks
* @tutorial AdvancedVerbs_ModifyVerbs
* @tutorial AdvancedVerbs_ModifyVerbs
* @classdesc
* <div class="display">
* <div class="ajs-player-input">> score</div>
* </div>
* <p>
* <strong>Score</strong> prints the game score,
* </p>
*/
A.Dictionary.VerbDefinitions.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;
},
};
})();