Class: Phrase
Defined in: adventure/dictionary/Phrase.js, line 6
Phrase is a special class used while parsing Input to refer to and set rules for noun / preposition pairs.
Private Constructor:
var foo = new adventurejs.Phrase()
- Index
- Methods
- Properties
Index
Methods:
Properties:
Methods Collapse all |
Properties |
accepts_noun :Boolean
Defined in: adventure/dictionary/Phrase.js, line 55
Default value: false
Examples: "look" or "look north"
accepts_preposition :Boolean
Defined in: adventure/dictionary/Phrase.js, line 74
Default value: false
accepts_preposition_without_noun :Boolean
Defined in: adventure/dictionary/Phrase.js, line 82
Default value: false
Examples:
"fly over"
noun_must_be :adventurejs.NounMustBe
Defined in: adventure/dictionary/Phrase.js, line 114
Default value: false
requires_preposition :Boolean
Defined in: adventure/dictionary/Phrase.js, line 93
Default value: false