Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// setObjectOfVerbs.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Asset.prototype;

  /**
   * <strong>setObjectOfVerbs</strong> is a convenience method that
   * passes a list of verb names through to
   * <code><a href="#method_setObjectOfVerb">setVerbSubscription</a></code>.
   * @memberOf adventurejs.Asset
   * @method adventurejs.Asset#setObjectOfVerbs
   * @param {String} object_of
   * @param {String} verb
   */
  p.setObjectOfVerbs = function Asset_setObjectOfVerbs(object_of, verbs) {
    for (var i = 0; i < verbs.length; i++) {
      this.setVerbSubscription(object_of, verbs[i]);
    }
  };
})();