def __doLeaveBootcamp(self):
     dialogType, focusedID = ExecutionChooserDialogMeta.SKIP, DIALOG_BUTTON_ID.CLOSE
     result = yield DialogsInterface.showDialog(
         ExecutionChooserDialogMeta(
             dialogType, 'bootcamp/' + dialogType, focusedID,
             not self.bootcampController.needAwarding()))
     if result:
         self.__doLeaveArena(True)
 def __doLeaveBootcamp(self):
     dialogConstants = self.bootcampController.getSkipDialogConstants()
     result = yield DialogsInterface.showDialog(
         ExecutionChooserDialogMeta(dialogConstants.dialogType,
                                    dialogConstants.dialogKey,
                                    dialogConstants.focusedID,
                                    not dialogConstants.needAwarding,
                                    dialogConstants.premiumType))
     if result:
         self.__doLeaveArena(True)
 def __doBootcamp(self, isSkip):
     dialogType, focusedID = (ExecutionChooserDialogMeta.SKIP, DIALOG_BUTTON_ID.CLOSE) if isSkip else (ExecutionChooserDialogMeta.RETRY, DIALOG_BUTTON_ID.SUBMIT)
     dialogKey = 'bootcamp/' + dialogType
     needAwarding = self.bootcamp.needAwarding()
     if not isSkip and needAwarding:
         dialogKey = 'bootcamp/' + ExecutionChooserDialogMeta.START
     result = yield DialogsInterface.showDialog(ExecutionChooserDialogMeta(dialogType, dialogKey, focusedID, not needAwarding and not isSkip))
     if result:
         if isSkip:
             self.bootcamp.stopBootcamp(False)
         elif self.prbDispatcher is not None:
             action = PrbAction(PREBATTLE_ACTION_NAME.BOOTCAMP)
             yield self.prbDispatcher.doSelectAction(action)
         self.destroy()
     return