// GlobalString.js
(function () {
/*global adventurejs A*/
"use strict";
/**
* @ajspath adventurejs.Atom.Asset.GlobalAsset.GlobalString
* @augments adventurejs.Asset
* @class adventurejs.GlobalString
* @ajsconstruct MyGame.createAsset({ "class":"GlobalString", "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.
* @todo Is this fully functional?
* @classdesc
* <p>
* <strong>GlobalString</strong> is a special subclass
* of {@link adventurejs.GlobalAsset|GlobalAsset} used to
* handle player input that has quoted strings in it, such
* as 'say "foo" to man'. Authors should not have to construct
* or modify this Asset.
* </p>
**/
class GlobalString extends adventurejs.GlobalAsset {
constructor(name, game_name) {
super(name, game_name);
this.class = "GlobalString";
this.name = "words";
this.name_is_proper = false;
//this.propername = "words";
this.definite_article = "the";
this.is.abstract = true;
this.descriptions.look = "That's a string.";
this.noun = "string";
this.plural = "strings";
this.singlePluralPairs = [["string", "strings"]];
this.values = [];
}
}
adventurejs.GlobalString = GlobalString;
})();