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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Electronics.Outlet
   * @augments adventurejs.Electronics
   * @class adventurejs.Outlet
   * @ajsconstruct MyGame.createAsset({ "class":"Outlet", "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 An electrical outlet.
   * @tutorial Tangibles_AboutTangibles
   * @classdesc
   * <p>
   * <strong>Outlet</strong> is a subclass of Electronics,
   * with no special properties, but meant to build upon.
   * Can be fixed, like a wall outlet, or mobile like a
   * power strip.
   * </p>
   **/
  class Outlet extends adventurejs.Electronics {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Outlet";

      this.descriptions.look = "Outlet.";
      this.singlePluralPairs = [["outlet", "outlets"]];

      this.setIOVs(["plugIn", "unplug"]);
      this.unsetDOV("plugIn");
    }
  }

  adventurejs.Outlet = Outlet;
})();