// getNestOrPlaceAsset.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Tangible.prototype;
/**
* Get asset's parent asset. If asset is character and nested,
* returns nest asset, otherwise returns room asset.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#getNestOrPlaceAsset
* @return {Boolean}
*/
p.getNestOrPlaceAsset = function Tangible_getNestOrPlaceAsset() {
if (this.isNested && this.isNested()) {
return this.getNestAsset();
} else {
return this.getPlaceAsset();
}
};
})();