// southwest.js
// OK 09 2023
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class southwest
* @ajsnode game.dictionary.verbs.southwest
* @ajsconstruct MyGame.createVerb({ "name": "southwest", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading DirectionVerbs
* @summary Verb meaning travel to southwest 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">> southwest</span>
* You float along cautiously to the southwest until a trailing
* strap of your spacesuit catches on a bit of debris and snaps
* back, causing you to spin widly out into deep space.
* </pre>
* <p>
* Direction verb: go <strong>southwest</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.southwest = {
name: "southwest",
is_direction: true,
is_compass_direction: true,
synonyms: ["southwest", "sw", "southwestward"],
adjectives: ["southwestern", "southwesterly", "southwesternly"],
article: "the",
type: { direction: true },
/**
* @ajsverbstructures
* @memberof southwest
*/
accepts_structures: ["verb"],
doSuccess: function () {
var input = this.game.getInput();
this.game.tryTravel(this.name);
return true;
},
};
})();