giveMeToAskFor object | actions.t[2177]

Define a global remapping to transform commands of the form "X, GIVE ME Y" to the format "ME, ASK X FOR Y". This makes it easier to write the code to handle these sorts of exchanges, since it means you only have to write it in the ASK FOR handler.

`giveMeToAskFor : GlobalRemapping`

Superclass Tree (in declaration order)

`giveMeToAskFor`
`GlobalRemapping`
`PreinitObject`
`ModuleExecObject`
`object`

Summary of Properties

``

Inherited from `GlobalRemapping` :
`allGlobalRemappings listNeedsSorting remappingOrder`

``

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

Summary of Methods

`getRemapping`

Inherited from `GlobalRemapping` :
`construct execute findGlobalRemapping registerGlobalRemapping unregisterGlobalRemapping`

``

Inherited from `ModuleExecObject` :
`_execute classExec`

Properties

(none)

Methods

`getRemapping (issuingActor, targetActor, action)`OVERRIDDEN | `actions.t[2184]`

Remap a command, if applicable. We look for commands of the form "X, GIVE ME Y": we look for a GiveTo action whose indirect object is the same as the issuing actor. When we find this form of command, we rewrite it to "ME, ASK X FOR Y".

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2