Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def open(self, gameId):
     self.game = GamesRepo.instance()[gameId]
     self.game.addDisplay(self)
     print 'display initialized with gameId', gameId