specialVerbMgr object | parser.t[6234]

The specialVerbMgr carries out various tasks needed for working with SpecialVerbs. In particular it preinitializes SpecialVerbs to add them to its LookupTable, and is responsible for matching SpecialVerbs to player input and translating and checking actions appropriately. Its methods and properties are entirely intended for internal use by the library and shouldn't normally be invoked or changed in user game code.

`specialVerbMgr : PreinitObject`

Superclass Tree (in declaration order)

`specialVerbMgr`
`PreinitObject`
`ModuleExecObject`
`object`

Summary of Properties

`currentSV maxKeyLen specTable vWords`

Inherited from `PreinitObject` :
`execBeforeMe reverseGlobalSymbols`

Inherited from `ModuleExecObject` :
`execAfterMe hasInitialized_ isDoingExec_ isExecuted_`

Summary of Methods

`addToTable checkSV execute findMatchingSV matchSV`

``

Inherited from `ModuleExecObject` :
`_execute classExec`

Properties

`currentSV` | `parser.t[6369]`

The SpecialVerb currently in use.

`maxKeyLen` | `parser.t[6403]`

The maxium number of words that can occur in a key to our specTable. This is calculated and stored here at preinit.

`specTable` | `parser.t[6396]`

Our LookupTable containing lists of grammar tokens (e.g., ['ring'] or ['go', 'across']) as keys and a list of matching SpecialVerbs as values.

`vWords` | `parser.t[6289]`

The verb words we're currently matching.

Methods

`addToTable (s, spec)` | `parser.t[6383]`

Add a SpecialVerb to our specTable; s is the key value containing the words that can invoke the SpecialVerb (e.g. ['ring'] or ['walk', 'across'] and spec is the matching SpecialVerb.

`checkSV (lst)` | `parser.t[6340]`

Call the checkSV() method on our currently active SpecialVerb, if we have one. Tbis is called by the current Command object just before invoking the relevant Doer for the command.

`execute ( )`OVERRIDDEN | `parser.t[6372]`

Carry out our preinitialization.

`findMatchingSV (toks)` | `parser.t[6235]`

no description available

`matchSV (toks)` | `parser.t[6291]`

no description available

Adv3Lite Library Reference Manual
Generated on 03/07/2024 from adv3Lite version 2.1