Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// getNestOrPlacePreposition.js
(function () {
  /*global adventurejs A*/
  "use strict";
  var p = adventurejs.Tangible.prototype;
  /**
   * Get preposition of character's parent aspect. If character is nested,
   * returns nest asset preposition, otherwise returns room asset preposition.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#getNestOrPlacePreposition
   * @return {Boolean}
   */
  p.getNestOrPlacePreposition = function Tangible_getNestOrPlacePreposition() {
    if (this.isNested()) {
      return this.getNestPreposition();
    } else {
      return this.getPlacePreposition();
    }
  };
})();