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

Class DialogueSection

source code

  object --+    
           |    
DialogueNode --+
               |
              DialogueSection
Known Subclasses:

DialogueNode that represents a distinct section of the dialogue.

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

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

Properties [hide private]
  actions
  id
  responses
  text

Inherited from object: __class__

Method Details [hide private]

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

source code 

Initialize a new DialogueSection instance.

Parameters:
  • id_ (basestring) - named used to uniquely identify the DialogueSection within a Dialogue.
  • 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__