Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0

Defined in: adventure/dictionary/NounPrefers.js, line 5

Engine class

Description

NounPrefers is a special class used while parsing Input to specify general conditions that are preferred in cases of disambiguation. This is a narrower set of preferences than those in NounPrefers, that when game.parser.handleSentence receives multiple qualified assets. Exclusion is handled by Parser.handleSentence. This is an internal class that authors should not need to construct, though there are methods to allow authors to customize these settings per Verb. See Modify Verbs for more info.

Private Constructor:

var foo = new AdventureJS.Dictionary.NounPrefers()
Inherited Overrides

Index

Methods Collapse all  |  Expand all

Properties  | 

absent
absent :Boolean

Defined in: adventure/dictionary/NounPrefers.js, line 38

Default value: false

If true, on finding ambiguous assets, Verb will prefer assets that are outside of the current Room
carried
carried :Boolean

Defined in: adventure/dictionary/NounPrefers.js, line 46

Default value: false

If true, on finding ambiguous assets, Verb will prefer assets that are carried by player.
dispenser
dispenser :Boolean

Defined in: adventure/dictionary/NounPrefers.js, line 62

Default value: false

If true, on finding ambiguous assets, Verb will prefer assets that are dispensers of fungibles rather than fungibles.
fungible
fungible :Boolean

Defined in: adventure/dictionary/NounPrefers.js, line 70

Default value: false

If true, on finding ambiguous assets, Verb will prefer assets that are fungibles rather than dispensers of fungibles.
present
present :Boolean

Defined in: adventure/dictionary/NounPrefers.js, line 30

Default value: false

If true, on finding ambiguous assets, Verb will prefer assets that are present in the current Room
uncarried
uncarried :Boolean

Defined in: adventure/dictionary/NounPrefers.js, line 54

Default value: false

If true, on finding ambiguous assets, Verb will prefer assets that are not carried by player.