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

  /**
   * @ajspath adventurejs.Atom.StateManager.Asset_Can.Tangible_Can
   * @augments adventurejs.Tangible_Can
   * @class adventurejs.Tangible_Can
   * @ajsnavheading StateClasses
   * @param {String} game_name Name of top level game instance that is scoped to window.
   * @param {String} name Instance name.
   * @summary A container for state variables.
   * @classdesc
   * <strong>Tangible_Can</strong> is a state management class
   * used to store a variety of booleans for
   * {@link adventurejs.Tangible|Tangible Assets}.
   **/

  class Tangible_Can extends adventurejs.Asset_Can {
    constructor(name = "can", game_name, parent_id) {
      // Call the constructor of the parent class
      super(name, game_name, parent_id);

      this.class = "Tangible_Can";

      return this;
    }
  }
  adventurejs.Tangible_Can = Tangible_Can;
})();