Redirector class | doer.t[21]

A Redirector is an object that can redirect one action to another via a doInstead wrapper method that provides a common interface. Subclasses are responsible for implementing the redirect method.

We begin this module by defing the Redirector class since in adv3Lite (though not in Mercury) Redirector is the base class for Doer.

`class Redirector : object`

Superclass Tree (in declaration order)

`Redirector`
`object`

Subclass Tree

`Redirector`
`Doer`
`ReplaceRedirector`
`Action`
`IAction`
`LiteralAction`
`MiscConvAction`
`NumericAction`
`SpecialTravelAction`
`SystemAction`
`FileOpAction`
`TopicAction`
`ImplicitConversationAction`
`TAction`
`LiteralTAction`
`NumericTAction`
`TIAction`
`TIAAction`
`TopicTAction`
`TravelAction`
`ActorTopicEntry`
`AltTopic`
`AskAboutForTopic`
`AskForTopic`
`AskTellGiveShowTopic`
`AskTellShowTopic`
`AskTellTopic`
`AskTopic`
`CommandTopic`
`DefaultTopic`
`DefaultAnyTopic`
`DefaultAgendaTopic`
`DefaultAnyNonSayTopic`
`DefaultConvstayTopic`
`DefaultAskForTopic`
`DefaultAskQueryTopic`
`DefaultAskTellTopic`
`DefaultAskTopic`
`DefaultCommandTopic`
`DefaultConversationTopic`
`DefaultNonSayTopic`
`DefaultGiveShowTopic`
`DefaultGiveTopic`
`DefaultQueryTopic`
`DefaultSayQueryTopic`
`DefaultSayTellTalkTopic`
`DefaultSayTellTopic`
`DefaultSayTopic`
`DefaultShowTopic`
`DefaultTalkTopic`
`DefaultTellTalkTopic`
`DefaultTellTopic`
`GiveShowTopic`
`GiveTopic`
`InitiateTopic`
`NodeContinuationTopic`
`NodeEndCheck`
`MiscTopic`
`GreetingTopic`
`ActorByeTopic`
`BoredByeTopic`
`ByeTopic`
`ExpByeTopic`
`HelloGoodbyeTopic`
`HelloTopic`
`ActorHelloTopic`
`ExpHelloTopic`
`ImpHelloTopic`
`ImpByeTopic`
`LeaveByeTopic`
`HitTopic`
`KissTopic`
`NoTopic`
`TouchTopic`
`YesNoTopic`
`YesTopic`
`SceneTopic`
`SceneEndTopic`
`SceneStartTopic`
`ShowTopic`
`SlaveTopic`
`SpecialTopic`
`QueryTopic`
`SayTopic`
`TalkTopic`
`AskTalkTopic`
`AskTellTalkTopic`
`TellTalkTopic`
`TellTalkShowTopic`
`TellTopic`
`BeforeRule`
`Thing`
`Actor`
`Player`
`Button`
`Collective`
`DispensingCollective`
`Consultable`
`Container`
`Booth`
`OpenableContainer`
`KeyedContainer`
`LockableContainer`
`Door`
`DSDoor`
`SymDoor`
`SecretDoor`
`Fixture`
`CollectiveGroup`
`MobileCollectiveGroup`
`Component`
`ContainerDoor`
`Decoration`
`Distant`
`ProxyExit`
`RoomPart`
`Ceiling`
`DefaultWall`
`SensoryEmanation`
`Noise`
`SimpleNoise`
`Odor`
`SimpleOdor`
`Unthing`
`Enterable`
`Heavy`
`Floor`
`Food`
`Immovable`
`Key`
`Lever`
`MinorItem`
`Passage`
`DSPassage`
`SymPassage`
`PathPassage`
`DSPathPassage`
`SymPathPassage`
`ProxyRoom`
`RearContainer`
`Room`
`OutdoorRoom`
`ScenItem`
`MultiScenItem`
`Settable`
`Dial`
`NumberedDial`
`SimpleAttachable`
`AttachableComponent`
`NearbyAttachable`
`Attachable`
`StairwayDown`
`StairwayUp`
`DSStairway`
`SymStairway`
`SubComponent`
`Surface`
`Platform`
`Bed`
`Chair`
`Switch`
`Flashlight`
`Underside`
`Wearable`

Global Objects

(none)

Summary of Properties

``

(none)

Summary of Methods

`askMissingLiteral doInstead doNested doOtherAction`

Properties

(none)

Methods

`askMissingLiteral (action, role, =, IndirectObject)` | `doer.t[148]`

Ask for a missing literal and retry action with the literal in role.

`doInstead (altAction, [args])` | `doer.t[28]`

doInstead() turns the current action into altAction with the objects specified in args, and executes altAction as a replacement for the current action.

`doNested (altAction, [args])` | `doer.t[37]`

doNested() executes altAction with the objects specified in args, executins altAction as part of the current action.

`doOtherAction (isReplacement, altAction, [args])` | `doer.t[47]`

Execute altAction on the objects specified in the args parameter. If isReplacement is true make altAction a replacement for the current action.

Adv3Lite Library Reference Manual
Generated on 08/12/2025 from adv3Lite version 2.2.2