// BladedWeapon.js
(function () {
/* global adventurejs A */
/**
* @ajspath adventurejs.Atom.Asset.Matter.Tangible.Thing.BladedWeapon
* @augments adventurejs.Thing
* @class adventurejs.BladedWeapon
* @ajsconstruct MyGame.createAsset({ "class":"BladedWeapon", "name":"foo", [...] })
* @ajsconstructedby adventurejs.Game#createAsset
* @ajsnavheading ToolClasses
* @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>BladedWeapon</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: "BladedWeapon",
* name: "singing sword",
* descriptions: { look: "It's a broad, flat-headed singing sword. ", },
* place: { in: "garden shed" },
* });
* </code></pre>
**/
class BladedWeapon extends adventurejs.Thing {
constructor(name, game_name) {
super(name, game_name);
this.class = "BladedWeapon";
this.synonyms = ["blade", "weapon"];
this.setDOVs(["get", "take", "give"]);
this.setIOVs(["kill", "attack", "hit"]); // stab, slice, cut, chop
}
}
adventurejs.BladedWeapon = BladedWeapon;
})();