ResolvedTopic class | parser.t[3106], 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[3145]`

no description available

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

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

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

no description available

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

no description available

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

no description available

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

no description available

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

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[3107]`

no description available

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

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 02/05/2024 from adv3Lite version 2.0