Пример #1
0
 def startNewGame(self):
     self.cleanup()
     setupDialog = SetupDialog(self)
     setupDialog.exec_()
     self.scenarioId = setupDialog.selectedScenarioId()
     self.playerDeckId = setupDialog.selectedDeckId()
     self.setup()
     
     self.prisonAct.setEnabled(self.scenarioId == 2)  # is it Escape From Dol Guldur?
Пример #2
0
 def startNewGame(self):
     self.cleanup()
     
     if self.isServer:
         setupDialog = SetupDialog(self)
         setupDialog.startButton.setText(QCoreApplication.translate('QObject', 'Ready!'))
         setupDialog.exec_()
         self.scenarioId = setupDialog.selectedScenarioId()
         self.playerDeckId = setupDialog.selectedDeckId()
     else:
         setupDialog = ClientSetupDialog(self)
         setupDialog.exec_()
         self.playerDeckId = setupDialog.selectedDeckId()
     
     data = 'CLIENT:READY\n'
     self.client.sendData(data)
     
     self.changeWindowTitleToWaiting()