Exemplo n.º 1
0
 def connected(self, perspective):
     self.perspective = perspective
     self.environment = yield perspective.callRemote('getEnvironment')
     self.environment.team = yield perspective.callRemote('getTeam')
     self.view = Window(self.environment)
     self.view.start("Client - %d" % (self.environment.team, ))
     self.controller = PlayerController(self.perspective, self.view)
     self.controller.go()