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([])
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()
def __init__(self, display): self._display = display Controller.__init__(self)
def __init__(self, app): Controller.__init__(self, app) self.model = Sync(app)
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 = []
def __init__(self): Controller.__init__(self)