Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// southeast.js
// OK 09 2023
(function () {
  /*global adventurejs A*/
  "use strict";

  /**
   * @augments {adventurejs.Verb}
   * @class southeast
   * @ajsnode game.dictionary.verbs.southeast
   * @ajsconstruct MyGame.createVerb({ "name": "southeast", [...] });
   * @ajsconstructedby adventurejs.Dictionary#createVerb
   * @hideconstructor
   * @ajsinstanceof Verb
   * @ajsnavheading DirectionVerbs
   * @summary Verb meaning travel to southeast direction.
   * @tutorial Scripting_VerbSubscriptions
   * @tutorial Verbs_VerbAnatomy
   * @tutorial Verbs_VerbProcess
   * @tutorial Verbs_ModifyVerbs
   * @tutorial Verbs_WriteVerbs
   * @classdesc
   * <pre class="display border outline">
   * <span class="input">&gt; southeast</span>
   * You step southeast onto the spongy ground, and are caught
   * completely unawares when it splits open to reveal the terrible teeth.
   * </pre>
   * <p>
   * Direction verb: go <strong>southeast</strong>.
   * To learn about {@link adventurejs.Exit|Exits},
   * see <a href="/doc/GetStarted_CreateAnExit.html">Create an Exit</a>.
   * </p>
   * @ajsverbphases doBeforeTry, doAfterTry, doBeforeSuccess, doAfterSuccess
   */
  A.Preverbs.southeast = {
    name: "southeast",
    is_direction: true,
    is_compass_direction: true,
    synonyms: ["southeast", "se", "southeastward"],
    adjectives: ["southeastern", "southeasterly", "southeasternly"],
    article: "the",
    type: { direction: true },

    /**
     * @ajsverbstructures
     * @memberof southeast
     */
    accepts_structures: ["verb"],

    doSuccess: function () {
      var input = this.game.getInput();
      this.game.tryTravel(this.name);
      return true;
    },
  };
})();