Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0

Class: ParsedNoun

Defined in: adventure/ParsedNoun.js, line 6

Framework class

ParsedNoun is a special class constructed by Parser.parseNoun(), and used to store metadata about an asset and lists of all possible matches for that asset. This is an internal class that authors should not need to construct.

Private Constructor:

var foo = new adventurejs.ParsedNoun(asset)

Parameters:

Inherited Overrides

Methods Collapse all  |  Expand all

Properties  | 

deserialized_input :String

Defined in: adventure/ParsedNoun.js, line 94

Default value: ""

exclude :Boolean

Defined in: adventure/ParsedNoun.js, line 38

Default value: false

input :String

Defined in: adventure/ParsedNoun.js, line 80

Default value: ""

is_assumed :Boolean

Defined in: adventure/ParsedNoun.js, line 143

Default value: false

isGroup :Boolean

Defined in: adventure/ParsedNoun.js, line 59

Default value: false

isPlural :Boolean

Defined in: adventure/ParsedNoun.js, line 52

Default value: false

matches :Object

Defined in: adventure/ParsedNoun.js, line 108

Default value: { all:[], direction:false, qualified:[], qualifiedIndex:0, unambiguous:""}

object_id :Getter

Defined in: adventure/ParsedNoun.js, line 153

Getter function looks for a qualified object id, and if it doesn't find one, it returns the first qualified match.
plural :String

Defined in: adventure/ParsedNoun.js, line 45

Default value: ""

preposition :String

Defined in: adventure/ParsedNoun.js, line 136

Default value: ""

qualified_object_id :String
serialized_input :String

Defined in: adventure/ParsedNoun.js, line 87

Default value: ""

singular :String

Defined in: adventure/ParsedNoun.js, line 66

Default value: ""

type :String

Defined in: adventure/ParsedNoun.js, line 73

Default value: ""