// EyeGlasses.js
(function () {
/*global adventurejs A*/
"use strict";
/**
* @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.EyeGlasses
* @augments adventurejs.Thing
* @class adventurejs.EyeGlasses
* @ajsconstruct MyGame.createAsset({ "class":"EyeGlasses", "name":"foo", [...] })
* @ajsconstructedby adventurejs.Game#createAsset
* @ajsnavheading OpticalClasses
* @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 Blast! These aren't my cheaters!
* @classdesc
* <p>
* <strong>EyeGlasses</strong> is a subclass of
* {@link adventurejs.OpticalDevice|OpticalDevice},
* which can be worn, and
* which can be looked through or with via
* <code>iov.look</code>.
* </p>
* <h3 class="examples">Example:</h3>
* <pre class="display"><code class="language-javascript">MyGame.createAsset({
* class: "EyeGlasses",
* name: "glasses",
* descriptions: { look: "My reading glasses. ", },
* place: { in: "desk drawer" },
* });
* </code></pre>
**/
class EyeGlasses extends adventurejs.OpticalDevice {
constructor(name, game_name) {
super(name, game_name);
this.class = "EyeGlasses";
this.descriptions.look = "Glasses.";
this.singlePluralPairs = [
["eyeglasses", "eyeglasses"],
["glasses", "glasses"],
];
this.setDOVs(["wear", "remove"]);
this.must.be_worn_to_look_through = true;
}
}
adventurejs.EyeGlasses = EyeGlasses;
})();