// Handtool.js
(function () {
/*global adventurejs A*/
/**
* @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.Handtool
* @augments adventurejs.Thing
* @class adventurejs.Handtool
* @ajsconstruct MyGame.createAsset({ "class":"Handtool", "name":"foo", [...] })
* @ajsconstructedby adventurejs.Game#createAsset
* @ajsnavheading WritingClasses
* @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 A generic hand tool.
* @classdesc
* <p>
* <strong>Handtool</strong> is a subclass of
* {@link adventurejs.Thing|Thing} with no
* particular properties.
* </p>
* <h3 class="examples">Example:</h3>
* <pre class="display"><code class="language-javascript">MyGame.createAsset({
* class: "Handtool",
* name: "garden spade",
* descriptions: { look: "It's a broad, flat-headed garden spade. ", },
* place: { in: "garden shed" },
* });
* </code></pre>
**/
class Handtool extends adventurejs.Thing {
constructor(name, game_name) {
super(name, game_name);
this.class = "Handtool";
this.synonyms = ["handtool", "tool"];
this.setDOVs(["get", "take", "give"]);
this.setIOVs([]);
}
}
adventurejs.Handtool = Handtool;
})();