// in.js
// OK 09 2023
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class in
* @ajsnode game.dictionary.verbs.in
* @ajsconstruct MyGame.createVerb({ "name": "in", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading DirectionVerbs
* @summary Verb meaning travel in.
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @tutorial Scripting_VerbSubscriptions
* @tutorial Verbs_VerbAnatomy
* @tutorial Verbs_VerbProcess
* @tutorial Verbs_ModifyVerbs
* @tutorial Verbs_WriteVerbs
* @classdesc
* <pre class="display border outline">
* <span class="input">> in</span>
* You go in the bank vault. The massive door slams behind you,
* trapping you inside the vault where you eventually suffocate.
* </pre>
* <p>
* Direction verb: go <strong>in</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.in = {
name: "in",
is_direction: true,
is_spatial_direction: true,
synonyms: ["in"],
type: { direction: true },
/**
* @ajsverbstructures
* @memberof in
*/
accepts_structures: ["verb"],
doSuccess: function () {
var input = this.game.getInput();
this.game.tryTravel(this.name);
return true;
},
};
})();