// Phone.js
(function () {
/*global adventurejs A*/
"use strict";
/**
* @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Electronics.Phone
* @augments adventurejs.Thing
* @class adventurejs.Phone
* @ajsconstruct MyGame.createAsset({ "class":"Phone", "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 scanners, meaning the type used as computer peripherals.
* @tutorial Tangibles_AboutTangibles
* @classdesc
* <p>
* <strong>Phones</strong> are a simple base class.
* TODO add dial, call, hang up.
* </p>
**/
class Phone extends adventurejs.Electronics {
constructor(name, game_name) {
super(name, game_name);
this.class = "Phone";
this.descriptions.look = "A phone.";
this.singlePluralPairs = [["phone", "phones"]];
this.setDOV("hang");
this.is.connected = false;
}
}
adventurejs.Phone = Phone;
})();