Package scripts :: Script dialogueactions :: Class RestartQuestAction
[hide private]
[frames] | no frames]

Class RestartQuestAction

    object --+        
             |        
DialogueAction --+    
                 |    
       QuestAction --+
                     |
                    RestartQuestAction

QuestAction used to restart an active quest.

Instance Methods [hide private]
 
__call__(self, game_state)
Restart an active quest.

Inherited from QuestAction: __init__

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

Class Methods [hide private]

Inherited from DialogueAction: registerAction

Class Variables [hide private]
basestring keyword = 'restart_quest'
keyword used by the DialogueParser to recognize the DialogueAction in serialized Dialogues.

Inherited from DialogueAction: logger, registered_actions

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__call__(self, game_state)
(Call operator)

 

Restart an active quest.

Parameters:
  • game_state (dict of objects) - variables and functions that make up the current game state.
Overrides: DialogueAction.__call__