Table of Contents

Class: StateMachineNPC gadgets.py

StateMachineNPC - a more complex NPC that answers based on a state machine

Base Classes   
pubobjs.NPC
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,
        )


Table of Contents

This document was automatically generated on Mon Aug 8 17:04:06 2005 by HappyDoc version 2.1