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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Electronics.Printer
   * @augments adventurejs.Thing
   * @class adventurejs.Printer
   * @ajsconstruct MyGame.createAsset({ "class":"Printer", "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 printers, meaning the type used as computer peripherals.
   * @tutorial Tangibles_AboutTangibles
   * @classdesc
   * <p>
   * <strong>Printers</strong> are a simple base class.
   * TODO add printing and paper spawning.
   * </p>
   **/
  class Printer extends adventurejs.Electronics {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Printer";

      this.descriptions.look = "Printer.";
      this.singlePluralPairs = [["printer", "printers"]];
    }
  }

  adventurejs.Printer = Printer;
})();