Verb:
base class of any Verb object
Verbs have various methods which are involved in
executing them -- checking possibilities, etc.
- Verb
- base class of any Verb object
Methods
|
|
Begin
Do
DoPostchecks
DoPrechecks
Finish
GetDuration
__init__
__str__
|
|
Begin
|
Begin ( self, cmd )
handle the command
|
|
Do
|
Do ( self, cmd )
schedule command for execution, if actor isn't busy
initiate immediatly
|
|
DoPostchecks
|
DoPostchecks ( self, cmd )
finish up
calls all relevant PostChecks
PostWitness, PostObj, PostAct
|
|
DoPrechecks
|
DoPrechecks ( self, cmd )
check that everything is ok, calls all relevant PreChecks
PreWitness, PreObj, PreAct
|
|
Finish
|
Finish ( self, cmd )
execute and output the even
do the actual action, i.e. changes to the game objects
do post-processing to provide alternate output
return OK in either case her, since command executed
|
|
GetDuration
|
GetDuration ( self, cmd )
|
|
__init__
|
__init__ ( self, pNames='' )
|
|
__str__
|
__str__ ( self )
returns a string containing Verb:
followed by a verbs primary name called with str(self)
|
|