Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// isPlacedAtAspect.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Tangible.prototype;	
  /**
   * Verify that asset is in the specified aspect.
   * For example, cap.isPlacedAtAspect( 'attached' )
   * @memberOf adventurejs.Tangible
	 * @method adventurejs.Tangible#isPlacedAtAspect
   * @return {Boolean}
   */
  p.isPlacedAtAspect = function Tangible_isPlacedAtAspect( aspect )
  {
    if(!this.__place) return false;
    if(!this.__place.aspect) return false;
    if(aspect && aspect !== this.__place.aspect) return false;
    return true;
  }
}());