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

  /**
   * @ajspath adventurejs.Atom.Asset.GlobalAsset.GlobalConcept.GlobalStart
   * @augments adventurejs.Asset
   * @class adventurejs.GlobalStart
   * @ajsconstruct MyGame.createAsset({ "class":"GlobalStart", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsinternal
   * @ajsnavheading GlobalAssets
   * @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>GlobalStart</strong> is a special subclass of
   * {@link adventurejs.GlobalConcept|GlobalConcept}
   * used to handle player input such as 'wait until class starts'.
   * Authors should not have to construct or modify this Asset.
   * </p>
   **/

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

      this.name = "start";
      this.synonyms = ["starts", "begin", "begins"];
      this.article = "a";
      this.definite_article = "a";

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

      this.descriptions.look = "It's the start.";
      this.noun = "start";
      // this.plural = "ends";
      // this.singlePluralPairs = [["end", "ends"]];

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