// getVesselAt.js
(function () {
/* global AdventureJS A */
var p = AdventureJS.Assets.Tangible.prototype;
/**
* Get substance container at specified preposition.
* @memberOf AdventureJS.Assets.Tangible
* @method AdventureJS.Assets.Tangible#getVesselAt
* @param {string} aspect - The aspect to check.
* @return {Object|Null}
*/
p.getVesselAt = function Tangible_getVesselAt(aspect) {
if (
!this.getAspectAt(aspect) ||
!this.aspects[aspect].vessel ||
!this.aspects[aspect].vessel.class
) {
return null;
}
return this.aspects[aspect].vessel;
};
})();