// canPlayerNest.js
(function () {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Tangible.prototype;
/**
* Ask if player can nest in an aspect of this asset.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#canPlayerNest
* @param {String} aspect A Tangible Aspect ID.
* @returns {Boolean}
*/
p.canPlayerNest = function Tangible_canPlayerNest(aspect) {
this.game.log(
"log",
"high",
"canPlayerNest.js > " + aspect + " " + this.name + "?",
"Tangible"
);
return this.hasAspectAt(aspect) && this.aspects[aspect].player.can.enter;
};
})();