Redirectorclass | 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`
`SystemAction`
`FileOpAction`
`TopicAction`
`ImplicitConversationAction`
`TAction`
`LiteralTAction`
`NumericTAction`
`TIAction`
`TopicTAction`
`TravelAction`
`ActorTopicEntry`
`AltTopic`
`AskAboutForTopic`
`AskForTopic`
`AskTellGiveShowTopic`
`AskTellShowTopic`
`AskTellTopic`
`AskTopic`
`CommandTopic`
`DefaultTopic`
`DefaultAnyTopic`
`DefaultAgendaTopic`
`DefaultAskForTopic`
`DefaultAskQueryTopic`
`DefaultAskTellTopic`
`DefaultAskTopic`
`DefaultCommandTopic`
`DefaultConversationTopic`
`DefaultGiveShowTopic`
`DefaultGiveTopic`
`DefaultQueryTopic`
`DefaultSayQueryTopic`
`DefaultSayTellTalkTopic`
`DefaultSayTellTopic`
`DefaultSayTopic`
`DefaultShowTopic`
`DefaultTalkTopic`
`DefaultTellTalkTopic`
`DefaultTellTopic`
`GiveShowTopic`
`GiveTopic`
`InitiateTopic`
`NodeContinuationTopic`
`NodeEndCheck`
`MiscTopic`
`GreetingTopic`
`ActorByeTopic`
`BoredByeTopic`
`ByeTopic`
`HelloGoodbyeTopic`
`HelloTopic`
`ActorHelloTopic`
`ImpHelloTopic`
`ImpByeTopic`
`LeaveByeTopic`
`HitTopic`
`KissTopic`
`NoTopic`
`TouchTopic`
`YesNoTopic`
`YesTopic`
`ShowTopic`
`SlaveTopic`
`SpecialTopic`
`QueryTopic`
`SayTopic`
`TalkTopic`
`AskTalkTopic`
`AskTellTalkTopic`
`TellTalkTopic`
`TellTalkShowTopic`
`TellTopic`
`Thing`
`Actor`
`Button`
`Consultable`
`Container`
`Booth`
`OpenableContainer`
`KeyedContainer`
`LockableContainer`
`Door`
`SecretDoor`
`Fixture`
`CollectiveGroup`
`Component`
`ContainerDoor`
`Decoration`
`Distant`
`SensoryEmanation`
`Noise`
`Odor`
`Unthing`
`Enterable`
`Heavy`
`Floor`
`Food`
`Immovable`
`Key`
`Lever`
`Passage`
`PathPassage`
`RearContainer`
`Room`
`Settable`
`Dial`
`NumberedDial`
`SimpleAttachable`
`AttachableComponent`
`NearbyAttachable`
`Attachable`
`StairwayDown`
`StairwayUp`
`SubComponent`
`Surface`
`Platform`
`Switch`
`Flashlight`
`Underside`
`Wearable`

Global Objects

(none)

Summary of Properties

``

(none)

Summary of Methods

`doInstead doNested doOtherAction`

Properties

(none)

Methods

`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 28/03/2016 from adv3Lite version 1.5