// northwest.js
// OK 09 2023
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class northwest
* @ajsnode game.dictionary.verbs.northwest
* @ajsconstruct MyGame.createVerb({ "name": "northwest", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading DirectionVerbs
* @summary Verb meaning travel to northwest.
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @classdesc
* <pre class="display border outline">
* <span class="input">> northwest</span>
* You take a delicate step to the northwest,
* where you're instantly swallowed by quicksand.
* </pre>
* <p>
* Direction verb: go <strong>northwest</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.northwest = {
name: "northwest",
is_direction: true,
is_compass_direction: true,
synonyms: ["northwest", "nw", "northwestward"],
adjectives: ["northwestern", "northwesterly", "northwesternly"],
article: "the",
type: { direction: true },
/**
* @ajsverbstructures
* @memberof northwest
*/
accepts_structures: ["verb"],
doSuccess: function () {
var input = this.game.getInput();
this.game.tryTravel(this.name);
return true;
},
};
})();