Class:Phrase
Defined in: adventure/dictionary/Phrase.js, line 5
Description
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.Dictionary.Phrase()
- Index
- Methods
- Properties
Index
Methods Collapse all |
Properties |
accepts_all
accepts_all :Boolean
Defined in: adventure/dictionary/Phrase.js, line 166
Default value: false
Examples:
"take all"
accepts_direction
accepts_direction :String
Defined in: adventure/dictionary/Phrase.js, line 26
accepts_noun
accepts_noun :Boolean
Defined in: adventure/dictionary/Phrase.js, line 54
Default value: false
Examples: "look" or "look north"
accepts_number
accepts_number :String
Defined in: adventure/dictionary/Phrase.js, line 40
accepts_plural_noun
accepts_plural_noun :Boolean
Defined in: adventure/dictionary/Phrase.js, line 155
Default value: false
Examples:
"take shield and sword"
"take all keys"
"take all"
accepts_preposition
accepts_preposition :Boolean
Defined in: adventure/dictionary/Phrase.js, line 73
Default value: false
accepts_preposition_without_noun
accepts_preposition_without_noun :Boolean
Defined in: adventure/dictionary/Phrase.js, line 81
Default value: false
Examples:
"fly over"
accepts_string
accepts_string :String
Defined in: adventure/dictionary/Phrase.js, line 19
noun_must_be
noun_must_be :AdventureJS.Dictionary.NounMustBe
Defined in: adventure/dictionary/Phrase.js, line 113
noun_prefers
noun_prefers :AdventureJS.Dictionary.NounPrefers
Defined in: adventure/dictionary/Phrase.js, line 134
requires_number
requires_number :String
Defined in: adventure/dictionary/Phrase.js, line 47
requires_preposition
requires_preposition :Boolean
Defined in: adventure/dictionary/Phrase.js, line 92
Default value: false
requires_string
requires_string :String
Defined in: adventure/dictionary/Phrase.js, line 33