Ejemplo n.º 1
0
    def __init__(self, view, application, dialogue):
        """Args:

            dialogue: A dictionary with the dialogue data, or a string
            with the name of a file to load, or a |Dialogue| instance.
        """
        ControllerBase.__init__(self, view, application)
        if(isinstance(dialogue, str)):
            dialogue_file = self.application.engine.getVFS().open(dialogue)
            dialogue = yaml.load(dialogue_file)
        if(isinstance(dialogue, dict)):
            self.dialogue = Dialogue(self.application.world, dialogue)
        else:
            self.dialogue = dialogue
Ejemplo n.º 2
0
    def __init__(self, view, application, dialogue):
        """Args:

            dialogue: A dictionary with the dialogue data, or a string
            with the name of a file to load, or a |Dialogue| instance.
        """
        ControllerBase.__init__(self, view, application)
        if isinstance(dialogue, str):
            dialogue_file = self.application.engine.getVFS().open(dialogue)
            dialogue = yaml.load(dialogue_file)
        if isinstance(dialogue, dict):
            self.dialogue = Dialogue(self.application.world, dialogue)
        else:
            self.dialogue = dialogue
Ejemplo n.º 3
0
 def __init__(self, view, application, outliner=None, listener=None):
     ControllerBase.__init__(self, view, application)
     self.outliner = outliner or SimpleOutliner()
     self.listener = listener or GameSceneListener(application.engine, self)
Ejemplo n.º 4
0
 def __init__(self, view, application, outliner=None, listener=None):
     ControllerBase.__init__(self, view, application)
     self.outliner = outliner or SimpleOutliner()
     self.listener = listener or GameSceneListener(application.engine,
                                                   self)