- Non-Player Character
Actor with simple responses.
Responds to commands, etc. If we want a more full-featured
agent character, we'll probably attempt to mimic this
interface.
An advanced agent-based character would probably be
written to support this interface. (Possibly with
additional methods to interact with other advanced
agents).
- NPC
- a Non-Player Character; an Actor with simple responses
Methods
|
|
HearCommand
HearEffect
HearSpeech
Tell
__init__
|
|
HearCommand
|
HearCommand (
self,
pCommander,
pCmdStr,
)
- Hear and react to commands
- May act on the command or not, depending on whether
the
obedient property has been set. Doesn't seem
to distinguish who I'm obedient to -- this would seem
to be necessary with advanced characters who might be
expected to give orders as well as take them.
|
|
HearEffect
|
HearEffect ( self, pStr )
- Does nothing.
- I think it's a hook for responding to non-verbal inputs.
|
|
HearSpeech
|
HearSpeech (
self,
pSpeaker,
pSpeech,
)
- Hear speech from another actor
- A special case of Tell, when another actor is
speaking to me.
|
|
Tell
|
Tell ( self, pWhat )
- Hear something told to me
- Here's the main function through which NPC's react:
they hear something, via their Tell() method.
Here's the main function through which NPC's react:
they hear something, via their Tell() method
|
|
__init__
|
__init__ ( self, pNames='' )
|
|