Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// didDoVerbs.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
  /**
   * <strong>didDoVerbs</strong> check whether any of 
   * the specified verbs has ever been applied to the asset
   * as a direct object. This is a convenience method that 
   * relies on asset.DOVdidDo()
   * @method adventurejs.Asset#didDoVerbs
   * @memberOf adventurejs.Asset
   * @param {Array} verbs 
   * @returns {Boolean}
   */
  p.didDoVerbs = function Asset_didDoVerbs( verbs )
  {
    if( !Array.isArray(verbs) ) return false;
    for(var i = 0; i < verbs.length; i++ )
    {
      if( this.DOVdidDo(verbs[i]) ) return true;
    }
    return false;
  }
}());