ThinkRules class | rules.t[798]

A class game code can use to define a RuleBook containing rules which respond to a THINK command. Game code can also just use a RuleBook for this purpose, but a ThoughtRules object will automatically register itself with the Think action as the object to use for this purpose, provided game code has not already overridden Think.ruleBook. For that reason, game code should not define more than one object of the ThoughtRules class.

`class ThinkRules : PreinitObject RuleBook`

Superclass Tree (in declaration order)

`ThinkRules`
`PreinitObject`
`ModuleExecObject`
`object`
`RuleBook`
`PreinitObject`
`ModuleExecObject`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`defaultValue`

Inherited from `PreinitObject` :
`execBeforeMe reverseGlobalSymbols`

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

Inherited from `RuleBook` :
`actor contents contValue defaultVal matchObj stopValue`

``

``

Summary of Methods

`execute`

``

Inherited from `ModuleExecObject` :
`_execute classExec`

Inherited from `RuleBook` :
`addToContents follow initBook removeFromContents`

``

``

Properties

`defaultValue` | `rules.t[809]`

Register this rulebook with the Think action as the rulebook to use for THINK commands, provvided the Think action doesn't already define another rulebook for the purpose.

Methods

`execute ( )`OVERRIDDEN | `rules.t[799]`

no description available

Adv3Lite Library Reference Manual
Generated on 13/06/2025 from adv3Lite version 2.2.1