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

  /**
   * @ajspath adventurejs.Atom.Asset.GlobalAsset.GlobalConcept.GlobalDrawing
   * @augments adventurejs.Asset
   * @class adventurejs.GlobalDrawing
   * @ajsconstruct MyGame.createAsset({ "class":"GlobalDrawing", "name":"foo", [...] })
   * @ajsconstructedby adventurejs.Game#createAsset
   * @ajsinternal
   * @ajsnavheading LibraryAssets
   * @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 Special class to handle quoted strings in player input.
   * @classdesc
   * <p>
   * <strong>GlobalDrawing</strong> is a special subclass
   * of {@link adventurejs.GlobalConcept|GlobalConcept} used to
   * handle player input that has digits in it, such
   * as "type 10 on keypad." Authors should not have to construct
   * or modify this Asset.
   * </p>
   **/

  class GlobalDrawing extends adventurejs.GlobalConcept {
    constructor(name, game_name) {
      super(name, game_name);
      this.class = "GlobalDrawing";

      this.setDOVs(["draw"]);

      this.name = "doodle";
      this.name_is_proper = false;
      //this.propername = "words";
      this.definite_article = "the";

      this.is.abstract = true;
      // this.is.information = true;

      this.descriptions.look = "A dashed-off doodle.";
      this.noun = "doodle";
      this.plural = "doodles";
      this.singlePluralPairs = [["doodle", "doodles"]];
    }

    // get articlename() {
    //   return this.values[0];
    // }
  }
  adventurejs.GlobalDrawing = GlobalDrawing;
})();