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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Container.GasContainer
   * @augments adventurejs.Container
   * @class adventurejs.GasContainer
   * @ajsconstruct MyGame.createAsset({ "class":"GasContainer", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsnavheading MiscAssetClasses
   * @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 For propane tanks, helium tanks, and the like.
   * @classdesc
   * <p>
   * <strong></strong>
   * </p>
   * <h3 class="examples">Example:</h3>
   * <pre class="display"><code class="language-javascript">
   * </code></pre>
   **/
  class GasContainer extends adventurejs.Container {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "GasContainer";

      this.Container_constructor(name, game_name);
      this.is.airtight = true;
      this.is.sealed = true; // might not be true but starting here
    }
  }
  adventurejs.GasContainer = GasContainer;
})();