// northeast.js
// OK 09 2023
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class northeast
* @ajsnode game.dictionary.verbs.northeast
* @ajsconstruct MyGame.createVerb({ "name": "northeast", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading DirectionVerbs
* @summary Verb meaning travel to northeast.
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @classdesc
* <pre class="display border outline">
* <span class="input">> northeast</span>
* You step off the cliff and fall to your death among the rocks.
* </pre>
* <p>
* Direction verb: go <strong>northeast</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.northeast = {
name: "northeast",
is_direction: true,
is_compass_direction: true,
synonyms: ["northeast", "ne", "northeastward"],
adjectives: ["northeastern", "northeasterly", "northeasternly"],
article: "the",
type: { direction: true },
/**
* @ajsverbstructures
* @memberof northeast
*/
accepts_structures: ["verb"],
doSuccess: function () {
this.game.tryTravel(this.name);
return true;
},
};
})();