// GlobalNumber.js
(function () {
/* global adventurejs A */
/**
* @ajspath adventurejs.Atom.Asset.GlobalAsset.GlobalConcept.GlobalNumber
* @augments adventurejs.Asset
* @class adventurejs.GlobalNumber
* @ajsconstruct MyGame.createAsset({ "class":"GlobalNumber", "name":"foo", [...] })
* @ajsconstructedby adventurejs.Game#createAsset
* @ajsinternal
* @ajsnavheading LibraryAssets
* @param {String} game_name The name of the top level game object.
* @param {String} name A name for the object, to be serialized and used as ID.
* @summary Special class to handle quoted strings in player input.
* @classdesc
* <p>
* <strong>GlobalNumber</strong> is a special subclass
* of {@link adventurejs.GlobalConcept|GlobalConcept} used to
* handle player input that has digits in it, such
* as "type 10 on keypad." Authors should not have to construct
* or modify this Asset.
* </p>
**/
class GlobalNumber extends adventurejs.GlobalConcept {
constructor(name, game_name) {
super(name, game_name);
this.class = "GlobalNumber";
this.name = "information";
this.name_is_proper = false;
//this.propername = "words";
this.definite_article = "that";
this.is.abstract = true;
this.is.information = true;
this.descriptions.look = "That's a number.";
this.noun = "number";
this.plural = "numbers";
this.singlePluralPairs = [["number", "numbers"]];
this.values = [];
}
get articlename() {
return this.values[0];
}
}
adventurejs.GlobalNumber = GlobalNumber;
})();