// starboard.js
// OK 09 2023
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class starboard
* @ajsnode game.dictionary.verbs.starboard
* @ajsconstruct MyGame.createVerb({ "name": "starboard", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading DirectionVerbs
* @summary Verb meaning travel to starboard 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">> starboard</span>
* You take a step to starboard, right into
* the path of an oncoming cannonball.
* </pre>
* <p>
* Direction verb: go <strong>starboard</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.starboard = {
name: "starboard",
is_direction: true,
is_spatial_direction: true,
synonyms: ["starboard", "right"],
type: { direction: true },
/**
* @ajsverbstructures
* @memberof starboard
*/
accepts_structures: ["verb"],
doSuccess: function () {
var input = this.game.getInput();
this.game.tryTravel(this.name);
return true;
},
};
})();