コード例 #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([])
コード例 #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()
コード例 #3
0
 def __init__(self, display):
     self._display = display
     Controller.__init__(self)
コード例 #4
0
 def __init__(self, app):
     Controller.__init__(self, app)
     self.model = Sync(app)
コード例 #5
0
ファイル: keys.py プロジェクト: gotoc/PyNES
 def __init__(self, display):
   self._display = display
   Controller.__init__(self)
コード例 #6
0
ファイル: cntrl_keyboard.py プロジェクト: jarppa/SpiritBox
 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 = []
コード例 #7
0
ファイル: cntrl_console.py プロジェクト: jarppa/SpiritBox
 def __init__(self):
     Controller.__init__(self)