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

Class MeetAction

source code

    object --+    
             |    
DialogueAction --+
                 |
                MeetAction

DialogueAction that adds an NPC to the list of NPCs known by the player.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Initialize a new MeetAction instance.
source code
 
__call__(self, game_state)
Add an NPC to the list of NPCs known by the player.
source code

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 = 'meet'
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]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Initialize a new MeetAction instance.

Parameters:
  • args (list of objects) - positional arguments.
  • npc_id (basestring) - identifier of the NPC that the player has met.
  • kwargs (dict of objects) - keyword arguments (not used).
Overrides: object.__init__

__call__(self, game_state)
(Call operator)

source code 

Add an NPC to the list of NPCs known by the player.

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