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

  /**
   * @ajspath adventurejs.Atom.Asset.GlobalConcept
   * @augments adventurejs.Asset
   * @class adventurejs.GlobalConcept
   * @ajsconstruct MyGame.createAsset({ "class":"GlobalConcept", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsnavheading BaseClasses
   * @param {String} game_name Name of top level game instance that is scoped to window.
   * @param {String} name Instance name.
   * @summary Base class for abtract concepts such as string and number.
   * @tutorial AssetReference__Overview
   * @classdesc
   * <p>
   * The GlobalConcept class is used for abstract concepts
   * that a player might input, including strings and numbers,
   * such as "say 'foo' to clerk" or "type 42 on keypad".
   * Also includes turns and minutes for cases like
   * "wait 10 turns" or "wait 15 minutes."
   **/
  class GlobalConcept extends adventurejs.GlobalAsset {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "GlobalConcept";
      this.is.abstract = true;
    }
  }
  adventurejs.GlobalConcept = GlobalConcept;
})();