Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// Cherries.js
(function () {
  /* global AdventureJS A */

  /**
   * @ajspath AdventureJS.Atom.Asset.Matter.Tangible.Thing.Edible.Fruit.Cherries
   * @augments AdventureJS.Assets.Fruit
   * @class AdventureJS.Assets.Cherries
   * @ajsconstruct MyGame.createAsset({ "class":"Cherries", "name":"foo", [...] })
   * @ajsconstructedby AdventureJS.Game#createAsset
   * @ajsnavheading FoodDrinkClasses
   * @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 Some cherries.
   * @classdesc
   * <strong>Cherries</strong> is an edible item that can be destroyed on eating.
   **/
  class Cherries extends AdventureJS.Assets.Fruit {
    constructor(name, game_name, context_id = "", id = "") {
      super(name, game_name, context_id, id);
      this.class = "Cherries";
    }
  }

  AdventureJS.Assets.Cherries = Cherries;
})();