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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Control.Dial
   * @augments adventurejs.Control
   * @class adventurejs.Dial
   * @ajsconstruct MyGame.createAsset({ "class":"Dial", "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 Turn turn turn.
   * @tutorial Tangibles_Controllers
   * @classdesc
   * <p>
   * <strong>Dial</strong> is a subclass of
   * {@link adventurejs.Control|Control} that can be
   * turned or twisted.
   * </p>
   * <pre class="display"><code class="language-javascript">
   * </code></pre>
   **/
  class Dial extends adventurejs.Control {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Dial";

      this.singlePluralPairs = [["dial ", "dials"]];

      this.setDOVs(["turn", "twist"]);
    }
  }
  adventurejs.Dial = Dial;
})();