// aft.js
// OK 09 2023
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class aft
* @ajsnode game.dictionary.verbs.aft
* @ajsconstruct MyGame.createVerb({ "name": "aft", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading DirectionVerbs
* @ajssynonyms aft, rearward, back
* @summary Verb meaning travel aft.
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @classdesc
* <pre class="display border outline">
* <span class="input">> aft</span>
* There's no direction that way. Whaddaya, think you're on a boat?
* You can go east or west. Oh wait. You were on a boat, and you just
* walked the plank. Hungry sharks applaud your lack of direction.
* </pre>
* <p>
* Direction verb: go <strong>aft</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.aft = {
name: "aft",
is_direction: true,
is_spatial_direction: true,
synonyms: ["aft", "rearward", "back", "stern"],
type: { direction: true },
/**
* @ajsverbstructures
* @memberof aft
*/
accepts_structures: ["verb"],
doSuccess: function () {
this.game.tryTravel(this.name);
return true;
},
};
})();