Package parpg :: Module dialogue :: Class DialogueGreeting
[hide private]
[frames] | no frames]

Class DialogueGreeting

source code

  object --+        
           |        
DialogueNode --+    
               |    
 DialogueSection --+
                   |
                  DialogueGreeting

Represents a root section of dialogue in a Dialogue along with the conditional statement used to determine the whether this section should be displayed first upon dialogue initiation.

Instance Methods [hide private]
 
__init__(self, id_, condition, text, responses=None, actions=None)
Initialize a new DialogueGreeting instance.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
basestring condition
Boolean Python expression used to determine if the DialogueSection referenced is a valid starting section.
basestring id
Name used to uniquely identify the DialogueSection to which the DialogueRootSectionReference points.
Properties [hide private]
  actions
  responses
  text

Inherited from object: __class__

Method Details [hide private]

__init__(self, id_, condition, text, responses=None, actions=None)
(Constructor)

source code 

Initialize a new DialogueGreeting instance.

Parameters:
  • id_ (basestring) - named used to uniquely identify the DialogueSection within a Dialogue.
  • condition (basestring) - Boolean Python expression used to determine if this root dialogue section should be displayed.
  • text (basestring) - text displayed as the NPC's part of the Dialogue.
  • responses (list of DialogueResponses) - possible responses that the player can choose from.
  • actions (list of DialogueActions) - dialogue actions that should be executed when the DialogueSection is reached.
Overrides: object.__init__