Exemplo n.º 1
0
 def __init__(self, labyrinth_ctrl, guard_ctrl, game_engine):
     Controller.__init__(self, game_engine, labyrinth_ctrl)
     Collider.__init__(self, game_engine)
     self._guard_ctrl = guard_ctrl
     self._model = HeroModel(self, labyrinth_ctrl)
     self._view = HeroView(self, self._model, game_engine)
     self._view.show_objects_collected([])
Exemplo n.º 2
0
    def __init__(self, args):
        Controller.__init__(self)
        try:
            port = int(args)
        except ValueError:
            port = 6666

        self.server = Server("0.0.0.0", port)
        self.server.start()
Exemplo n.º 3
0
 def __init__(self, display):
     self._display = display
     Controller.__init__(self)
Exemplo n.º 4
0
 def __init__(self, app):
     Controller.__init__(self, app)
     self.model = Sync(app)
Exemplo n.º 5
0
Arquivo: keys.py Projeto: gotoc/PyNES
 def __init__(self, display):
   self._display = display
   Controller.__init__(self)
Exemplo n.º 6
0
 def __init__(self):
     Controller.__init__(self)
     self.keys = dict((k, v) for k, v in KEYS_AND_BUTTONS)
     self.types = dict((k, v) for k, v in EVENT_TYPES)
     self.pressed = []
Exemplo n.º 7
0
 def __init__(self):
     Controller.__init__(self)