Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getSubject.js

(function () {
  /* global AdventureJS A */

  var p = AdventureJS.Game.prototype;

  /**
   * Convenience method to get the current subject asset.
   * Usually this would be the player, unless player has
   * input something like "Floyd, go east"
   * @method AdventureJS.Game#getSubject
   * @memberOf AdventureJS.Game
   * @returns {Object}
   */
  p.getSubject = p.$subject = function Game_getSubject() {
    return this.getInput().getSubject();
  };
})();