Crossfire Server, Trunk
CFDialog.Dialog Class Reference
+ Collaboration diagram for CFDialog.Dialog:

Public Member Functions

def __init__ (self, character, speaker, location)
 
def addRule (self, rule, index)
 
def getNPCStatus (self, key)
 
def getStatus (self, key)
 
def isAnswer (self, msg, keywords)
 
def keyName (self)
 
def matchConditions (self, rule)
 
def setConditions (self, rule)
 
def setNPCStatus (self, key, value)
 
def setStatus (self, key, value)
 
def speak (self, msg)
 
def uniqueKey (self)
 

Private Attributes

 __character
 
 __location
 
 __rules
 
 __speaker
 

Detailed Description

Definition at line 183 of file CFDialog.py.

Constructor & Destructor Documentation

◆ __init__()

def CFDialog.Dialog.__init__ (   self,
  character,
  speaker,
  location 
)

Definition at line 187 of file CFDialog.py.

Member Function Documentation

◆ addRule()

def CFDialog.Dialog.addRule (   self,
  rule,
  index 
)

Definition at line 197 of file CFDialog.py.

References CFDialog.Dialog.__rules.

◆ getNPCStatus()

def CFDialog.Dialog.getNPCStatus (   self,
  key 
)

Definition at line 366 of file CFDialog.py.

References CFDialog.Dialog.__character, CFDialog.Dialog.__speaker, and CFDialog.Dialog.keyName().

+ Here is the call graph for this function:

◆ getStatus()

def CFDialog.Dialog.getStatus (   self,
  key 
)

Definition at line 324 of file CFDialog.py.

References CFDialog.Dialog.__character, and CFDialog.Dialog.keyName().

+ Here is the call graph for this function:

◆ isAnswer()

def CFDialog.Dialog.isAnswer (   self,
  msg,
  keywords 
)

Definition at line 258 of file CFDialog.py.

Referenced by CFDialog.Dialog.speak().

+ Here is the caller graph for this function:

◆ keyName()

def CFDialog.Dialog.keyName (   self)

◆ matchConditions()

def CFDialog.Dialog.matchConditions (   self,
  rule 
)

Definition at line 268 of file CFDialog.py.

References CFDialog.Dialog.__character, CFDialog.Dialog.__location, CFDialog.Dialog.__speaker, CFBank.open(), and make_face_from_files.str.

Referenced by CFDialog.Dialog.speak().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setConditions()

def CFDialog.Dialog.setConditions (   self,
  rule 
)

Definition at line 298 of file CFDialog.py.

References CFDialog.Dialog.__character, CFDialog.Dialog.__location, CFDialog.Dialog.__speaker, and CFBank.open().

Referenced by CFDialog.Dialog.speak().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNPCStatus()

def CFDialog.Dialog.setNPCStatus (   self,
  key,
  value 
)

Definition at line 382 of file CFDialog.py.

References CFDialog.Dialog.__character, CFDialog.Dialog.__speaker, and CFDialog.Dialog.keyName().

+ Here is the call graph for this function:

◆ setStatus()

def CFDialog.Dialog.setStatus (   self,
  key,
  value 
)

Definition at line 339 of file CFDialog.py.

References CFDialog.Dialog.__character, and CFDialog.Dialog.keyName().

+ Here is the call graph for this function:

◆ speak()

◆ uniqueKey()

def CFDialog.Dialog.uniqueKey (   self)

Definition at line 251 of file CFDialog.py.

References CFDialog.Dialog.__character, and CFDialog.Dialog.__location.

Referenced by CFDialog.Dialog.speak().

+ Here is the caller graph for this function:

Field Documentation

◆ __character

◆ __location

CFDialog.Dialog.__location
private

◆ __rules

CFDialog.Dialog.__rules
private

Definition at line 191 of file CFDialog.py.

Referenced by CFDialog.Dialog.addRule(), and CFDialog.Dialog.speak().

◆ __speaker


The documentation for this class was generated from the following file: