def open(self, gameId, controllerId): print 'controller got gameId', gameId, 'and controllerId', controllerId self.game = GamesRepo.instance()[gameId] self.controllerId = controllerId self.game.addController(self)
def open(self, gameId): self.game = GamesRepo.instance()[gameId] self.game.addDisplay(self) print 'display initialized with gameId', gameId