Package parpg :: Module dialogueactions :: Class DecreaseQuestVariableAction
[hide private]
[frames] | no frames]

Class DecreaseQuestVariableAction

source code

    object --+            
             |            
DialogueAction --+        
                 |        
       QuestAction --+    
                     |    
   QuestVariableAction --+
                         |
                        DecreaseQuestVariableAction

QuestVariableAction used to decrease the value of a quest variable by a set amount.

Instance Methods [hide private]
 
__call__(self, game_state)
Decrease a quest variable by a set amount.
source code

Inherited from QuestVariableAction: __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 = 'decrease_quest_variable'
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)

source code 

Decrease a quest variable by a set amount.

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