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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Control.Gauge
   * @augments adventurejs.Control
   * @class adventurejs.Gauge
   * @ajsconstruct MyGame.createAsset({ "class":"Gauge", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsnavheading ControlClasses
   * @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 A tool of measurement.
   * @tutorial Tangibles_Controllers
   * @classdesc
   * <p>
   * <strong>Gauge</strong> is a subclass of
   * {@link adventurejs.Control|Control} that can be
   * tapped and read.
   * </p>
   * <pre class="display"><code class="language-javascript">
   * </code></pre>
   **/
  class Gauge extends adventurejs.Control {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Gauge";

      this.singlePluralPairs = [["gauge ", "gauges"]];

      this.setDOVs(["tap", "read"]);
    }
  }
  adventurejs.Gauge = Gauge;
})();