StateMachineNPC - a more complex NPC that answers based on a state machine
Methods
|
|
GetDesc
HearEffect
HearSpeech
ProcessInput
SetStates
SwitchState
__init__
|
|
GetDesc
|
GetDesc ( self, pDepth=0 )
get description
|
|
HearEffect
|
HearEffect ( self, pStr )
|
|
HearSpeech
|
HearSpeech (
self,
pSpeaker,
pSpeech,
)
- Hear speech from another actor
- A special case of Tell, when another actor is
speaking to me.
|
|
ProcessInput
|
ProcessInput (
self,
i_type,
i_text,
i_who,
)
|
|
SetStates
|
SetStates ( self, pStates )
|
|
SwitchState
|
SwitchState ( self, state )
|
|
__init__
|
__init__ (
self,
pNames='',
pStates=__sampledef,
)
|
|