Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// getAspectAt.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Tangible.prototype;
  /**
   * Get aspect at specified preposition.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#getAspectAt
   * @param {string} aspect - The aspect to get.
   * @return {Object|Null}
   */
  p.getAspectAt = function Tangible_getAspectAt(aspect) {
    if (!aspect || !this.aspects || !this.aspects[aspect]) {
      return null;
    }
    return this.aspects[aspect];
  };
})();