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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Electronics
   * @augments adventurejs.Electronics
   * @class adventurejs.Electronics
   * @ajsconstruct MyGame.createAsset({ "class":"Electronics", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsnavheading ElectronicsClasses
   * @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 Use to create things player can tie rope to and swing from.
   * @classdesc
   * <p>
   * <strong>Electronics</strong> is a minimally specialized
   * subclass of
   * {@link adventurejs.Thing|Thing},
   * meant for building more complex electronic classes
   * such as {@link adventurejs.Radio|radios} and
   * {@link adventurejs.Computer|computers}.
   * </p>
   **/
  class Electronics extends adventurejs.Thing {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Electronics";
      this.setDOV("plugIn");
    }
  }

  adventurejs.Electronics = Electronics;
})();