Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// initStandardVerbs.js

(function () {
  /* global adventurejs A */

  var p = adventurejs.Dictionary.prototype;

  /**
   * Construct all native verbs. When complete,
   * sets game.dictionary.did_initialize_verbs to true.
   * @memberOf adventurejs.Dictionary
   * @method adventurejs.Dictionary#initStandardVerbs
   * @kind function
   * @param {String} word
   * @returns {String|Boolean}
   */
  p.initStandardVerbs = function Dictionary_initStandardVerbs(word) {
    for (var key in A.Preverbs) {
      const preverb = A.Preverbs[key];
      this.createVerb(preverb);
    }
    this.did_initialize_verbs = true;
  };
})();