// GlobalTurn.js
(function () {
/* global adventurejs A */
/**
* @ajspath adventurejs.Atom.Asset.GlobalAsset.GlobalConcept.GlobalTurn
* @augments adventurejs.Asset
* @class adventurejs.GlobalTurn
* @ajsconstruct MyGame.createAsset({ "class":"GlobalTurn", "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 "wait x minutes".
* @classdesc
* <p>
* <strong>GlobalTurn</strong> is a special subclass of
* {@link adventurejs.GlobalConcept|GlobalConcept}
* used to handle player input such as 'wait 10 turns'.
* Authors should not have to construct or modify this Asset.
* </p>
**/
class GlobalTurn extends adventurejs.GlobalConcept {
constructor(name, game_name) {
super(name, game_name);
this.class = "GlobalTurn";
this.name = "turn";
this.article = "a";
this.definite_article = "a";
this.name_is_proper = false;
this.is.abstract = true;
this.is.intangible = true;
this.is.information = false;
this.is.time = true;
this.descriptions.look = "It's a turn.";
this.noun = "turn";
this.plural = "turns";
this.singlePluralPairs = [["turn", "turns"]];
// this.values = [];
}
}
adventurejs.GlobalTurn = GlobalTurn;
})();