ResolvedTopic class | parser.t[3100], english.t[2084]

no description available

Modified in english.t[2084]:
Modification to the ResolvedTopic for use with the English-language specific part of the library.

`class ResolvedTopic : object`

Superclass Tree (in declaration order)

`ResolvedTopic`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`aName getTopicText name person theName tokens topicList`

Summary of Methods

`construct getBestMatch getTopicText`

Properties

`aName` | `parser.t[3139]`

no description available

`getTopicText` | `parser.t[3137]`

If we find a user-defined topic, return that; otherwise simply return the first item in the list.

`name` | `parser.t[3140]`

no description available

`person` | `parser.t[3141]`

no description available

`theName` | `parser.t[3138]`

no description available

`tokens` | `parser.t[3116]`

no description available

`topicList` | `parser.t[3115]`

if our list of topics has more than one entry, sort it in ascending order of length of name. That's because the shorter the name, the closer it may be to what the player actually typed.

Methods

`construct (lst, toks)` | `parser.t[3101]`

no description available

`getBestMatch ( )` | `parser.t[3119]`

Get the object representing this ResolvedTopic's best match.

`getTopicText ( )` | `english.t[2091]`

The English Tokenizer separates apostrophe-S from the word it's part of, so in restoring the original text we need to join any apostrophe-S back to the word it was separated from.

Adv3Lite Library Reference Manual
Generated on 25/04/2024 from adv3Lite version 2.0