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

  /**
   * @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Electronics.Computer
   * @augments adventurejs.Thing
   * @class adventurejs.Computer
   * @ajsconstruct MyGame.createAsset({ "class":"Computer", "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 computers, including desktops and laptops and Landru.
   * @tutorial Tangibles_AboutTangibles
   * @classdesc
   * <p>
   * <strong>Computers</strong>. What can't they do?
   * </p>
   **/
  class Computer extends adventurejs.Electronics {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "Computer";

      this.descriptions.look = "Computer.";
      this.singlePluralPairs = [["computer", "computers"]];
    }
  }

  adventurejs.Computer = Computer;
})();