// float.js
(function () {
/*global adventurejs A*/
"use strict";
/**
* @augments {adventurejs.Verb}
* @class float
* @ajsnode game.dictionary.verbs.float
* @ajsconstruct MyGame.createVerb({ "name": "float", [...] });
* @ajsconstructedby adventurejs.Dictionary#createVerb
* @hideconstructor
* @ajsinstanceof Verb
* @ajsnavheading LocomotionVerbs
* @summary Verb meaning float, as in "float in lake"; or, travel in specified 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">> float over London</span>
* You float over London, pooting along on little puffs of mist.
* It's a pleasant day to be a cloud.
* </pre>
* Float extends core verb <a href="go.html">go</a>.
* It checks whether "float" is contextually available
* before forwarding to "go" for further handling.
* @ajsverbreactions
* @ajsverbphases doBeforeTry, doAfterTry, doBeforeSuccess, doAfterSuccess
*/
A.Preverbs.float = {
name: "float",
prettyname: "float",
past_tense: "floated",
synonyms: ["float"],
type: { locomotion: true, travel: true },
extends: { go: true },
player_must_be: {
not_constrained: true,
not_on_floor: true,
not_nested_elsewhere: true,
able_to_float: true,
},
/**
* @ajsverbstructures
* @memberof float
*/
accepts_structures: [
"verb",
"verb noun",
"verb preposition",
"verb preposition noun",
"verb noun preposition noun",
],
/**
* @memberof float
* @ajsverbphrase
* phrase1:
* {
* accepts_noun:true,
* noun_must_be:
* {
* known: true,
* tangible: true,
* present: true,
* visible: true,
* reachable: true,
* },
* accepts_preposition: true,
* },
*/
phrase1: {
accepts_noun: true,
noun_must_be: {
known: true,
tangible: true,
present: true,
visible: true,
reachable: true,
},
accepts_preposition: true,
},
/**
* @memberof float
* @ajsverbphrase
* phrase2:
* {
* accepts_noun:true,
* noun_must_be:
* {
* known: true,
* tangible: true,
* present: true,
* visible: true,
* reachable: true,
* },
* accepts_preposition: true,
* },
*/
phrase2: {
accepts_noun: true,
noun_must_be: {
known: true,
tangible: true,
present: true,
visible: true,
reachable: true,
},
accepts_preposition: true,
},
/**
* @memberof float
* @ajsverbparams
* with_params: {},
*/
with_params: {},
do: function () {
return this.game.dictionary.doVerb("go");
},
}; // END float
})();