Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// GlobalMinute.js
(function () {
  /* global adventurejs A */

  /**
   * @ajspath adventurejs.Atom.Asset.GlobalAsset.GlobalConcept.GlobalMinute
   * @augments adventurejs.Asset
   * @class adventurejs.GlobalMinute
   * @ajsconstruct MyGame.createAsset({ "class":"GlobalMinute", "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>GlobalMinute</strong> is a special subclass of
   * {@link adventurejs.GlobalConcept|GlobalConcept}
   * used to handle player input such as 'wait 15 minutes'.
   * Authors should not have to construct or modify this Asset.
   * </p>
   **/

  class GlobalMinute extends adventurejs.GlobalConcept {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "GlobalMinute";

      this.name = "minute";
      this.article = "a";
      this.definite_article = "a";
      // this.name_is_proper = false;

      this.is.abstract = true;
      this.is.intangible = true;
      this.is.information = true;
      this.is.time = true;

      this.descriptions.look = "It's a minute.";
      this.noun = "minute";
      this.plural = "minutes";
      this.singlePluralPairs = [["minute", "minutes"]];

      // this.values = [];
    }
  }
  adventurejs.GlobalMinute = GlobalMinute;
})();