giveMeToAskForobject
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
Inherited from GlobalRemapping
:
construct
execute
findGlobalRemapping
registerGlobalRemapping
unregisterGlobalRemapping
Inherited from ModuleExecObject
:
_execute
classExec
Properties
(none)
Methods
getRemapping (issuingActor, targetActor, action)
OVERRIDDEN
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 5/16/2013 from TADS version 3.1.3