Package scripts :: Package objects :: Script action :: Class TalkAction
[hide private]
[frames] | no frames]

Class TalkAction

source code

object --+    
         |    
    Action --+
             |
            TalkAction

An action to represent starting a dialogue

Instance Methods [hide private]
 
__init__(self, controller, npc, commands=None)
Basic action constructor
source code
 
execute(self)
Talk with the NPC when close enough, otherwise move closer.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, controller, npc, commands=None)
(Constructor)

source code 

Basic action constructor

Parameters:
  • controller (scripts.GameSceneController) - A reference to the GameSceneController.
  • commands (Dictionary) - Special commands that are executed
  • view (class derived from scripts.ViewBase) - The view
  • npc (NonPlayerCharacter) - NPC to interact with.
Overrides: object.__init__

execute(self)

source code 

Talk with the NPC when close enough, otherwise move closer.

Returns:
None
Overrides: Action.execute