Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// Intangible.js
(function () {
  /*global adventurejs A*/
  "use strict";

  /**
   * @ajspath adventurejs.Atom.Asset.Intangible
   * @augments adventurejs.Asset
   * @class adventurejs.Intangible
   * @ajsconstruct MyGame.createAsset({ "class":"Intangible", "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 objects with no physical presence.
   * @tutorial Intangibles_AboutIntangibles
   * @classdesc
   * <p>
   * <strong></strong>
   * </p>
   * <h3 class="examples">Example:</h3>
   * <pre class="display"><code class="language-javascript">
   * </code></pre>
   **/
  class Intangible extends adventurejs.Asset {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Intangible";
      //this.is.global = true;
      this.is.abstract = true;
    }
  }
  adventurejs.Intangible = Intangible;
})();