TopicPhraseclass | parser.t[2947], english.t[2026]

TopicPhrase is a special kind of NounPhrase for topics (ASK ABOUT, TELL ABOUT, TALK ABOUT, LOOK UP, etc). These phrases aren't resolved to game-world objects the way ordinary noun phrases are, but instead are resolved to conversation topic objects.

Modified in english.t[2026]:
Modifications to TopicPhrase to make it work better with the English-specific part of the library.

`class TopicPhrase : NounPhrase`

Superclass Tree (in declaration order)

`TopicPhrase`
`NounPhrase`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

``

Inherited from `NounPhrase` :
`contPrep contQual coreProd determiner disambigNameList errName errNameProd exclusions locQual locType matches objs ordinal parent possQual prod pronoun quantifier role tokens`

Summary of Methods

`matchNameScope matchVocab selectObjects`

Inherited from `NounPhrase` :
`addContents addExclusionItem addLiteral addLocation addMatches addOrdinal addPossessive addQuantifier ambigError applyContQual applyDisambig applyExclusion applyLocational applyPossessive buildObjList clone construct contains disambiguate expandErrName isAllEquivalent isMultiple matchVocabPoss resolveAll resolveReflexives`

Properties

(none)

Methods

`matchNameScope (cmd, scope)`OVERRIDDEN | `parser.t[3056], english.t[2027]`

expand the error text to include the possessive qualifier

`matchVocab (cmd)`OVERRIDDEN | `parser.t[2955]`

Get the list of objects matching the vocabulary words in our noun phrase. Populates our 'matches' property with a vector of matching objects. This doesn't look at any of our qualifiers, or attempt to disambiguate contextually; it simply finds everything in scope that the noun phrase could refer to.

`selectObjects (cmd)`OVERRIDDEN | `parser.t[3080]`

return the list

Adv3Lite Library Reference Manual
Generated on 12/12/2022 from adv3Lite version 1.6