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

  /**
   * @ajspath AdventureJS.Atom.Asset.Tangible.Entity.Enclosure.Tent
   * @augments AdventureJS.Assets.Enclosure
   * @class AdventureJS.Assets.Tent
   * @classdesc Plain text description. Explanation of the class.
   * @ajsconstruct MyGame.createAsset({ "class": "Tent", "name": "foo", [...] })
   * @ajsconstructedby AdventureJS.Game#createAsset
   * @ajsnavheading EnclosureClasses
   * @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 sitting.
   * @tutorial Entities
   * @ajstangiblecontainer on
   * @classdesc <strong>Tent</strong> is child class of
   * {@link AdventureJS.Assets.Enclosure|Enclosure}.
   * Player can stand in it, sit in it, lie in it,
   * put things in it, etc.
   **/
  class Tent extends AdventureJS.Assets.Enclosure {
    constructor(name, game_name, context_id = "", id = "") {
      super(name, game_name, context_id, id);
      this.class = "Tent";

      this.synonyms = [];
      this.singular = "tent";
      this.plural = "tents";
      this.singularPluralPairs = [["tent", "tents"]];

      this.setDOVs(["open", "close"]);
    }
  }
  AdventureJS.Assets.Tent = Tent;
})();