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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Electronics.Radio
   * @augments adventurejs.Electronics
   * @class adventurejs.Radio
   * @ajsconstruct MyGame.createAsset({ "class":"Radio", "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 Asset class for radios, including desktops, handhelds, and car.
   * @tutorial Tangibles_AboutTangibles
   * @classdesc
   * <p>
   * <strong>Radio</strong> is a subclass of Electronics,
   * with no special properties, but meant to build upon.
   * </p>
   **/
  class Radio extends adventurejs.Electronics {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Radio";

      this.descriptions.look = "Radio.";
      this.singlePluralPairs = [["radio", "radios"]];
    }
  }
  adventurejs.Radio = Radio;
})();