Beispiel #1
0
 def torneos(self):
     xjugar = PantallaTorneos.torneos(self.pantalla)
     while xjugar:
         torneo, liGames = xjugar
         self.gestor = GestorTorneo.GestorTorneo(self)
         self.gestor.inicio(torneo, liGames)
         self.inicio()
         xjugar = PantallaTorneos.unTorneo(self.pantalla, torneo)
Beispiel #2
0
 def torneos(self):
     xjugar = PantallaTorneos.torneos(self.pantalla)
     while xjugar:
         torneo, liGames = xjugar
         self.gestor = GestorTorneo.GestorTorneo(self)
         self.gestor.inicio(torneo, liGames)
         self.inicio()
         xjugar = PantallaTorneos.unTorneo(self.pantalla, torneo)
Beispiel #3
0
 def torneos(self):
     xjugar = PantallaTorneos.torneos(self.pantalla)
     while xjugar:
         nombre_torneo, liNumGames = xjugar
         self.gestor = GestorTorneo.GestorTorneo(self)
         self.gestor.inicio(nombre_torneo, liNumGames)
         self.inicio()
         xjugar = PantallaTorneos.unTorneo(self.pantalla, nombre_torneo)
     self.reiniciar()
Beispiel #4
0
    def inicio(self, torneo, liGames):

        self.tipoJuego = kJugMvM

        self.torneo = torneo
        self.torneoTMP = torneo.clone()
        self.torneoTMP._liGames = liGames
        self.fenInicial = self.torneo.fenNorman()
        self.liGames = liGames
        self.pantalla.ponActivarTutor(False)
        self.ponPiezasAbajo(True)
        self.mostrarIndicador(True)
        self.siTerminar = False
        self.pantalla.ponToolBar((k_cancelar, ))
        self.colorJugando = True
        self.ponCapPorDefecto()

        self.wresult = PantallaTorneos.WResult(self.pantalla, torneo,
                                               self.torneoTMP, self)
        self.wresult.show()

        numGames = len(self.liGames)
        for ng, gm in enumerate(self.liGames):
            self.siguienteJuego(gm, ng + 1, numGames)
            if self.siTerminar:
                break
            if self.wresult:
                self.wresult.refresh()

        if self.wresult:
            self.wresult.terminar()
Beispiel #5
0
    def inicio(self, nombre_torneo, liNumGames):

        self.tipoJuego = kJugMvM

        self.torneo = Torneo.leer(nombre_torneo)
        Torneo.leerTmp(liNumGames)
        self.pantalla.ponActivarTutor(False)
        self.ponPiezasAbajo(True)
        self.mostrarIndicador(True)
        self.siTerminar = False
        self.siPausa = False
        self.pantalla.ponToolBar((k_cancelar, k_peliculaPausa, k_forceEnd))
        self.colorJugando = True
        self.ponCapPorDefecto()

        self.wresult = PantallaTorneos.WResult(self.pantalla, self)
        self.wresult.show()

        numGames = len(liNumGames)
        for ng in range(numGames):
            gm = self.torneo._liGames[liNumGames[ng]]
            self.siguienteJuego(gm, ng + 1, numGames)
            self.procesador.pararMotores()
            if self.siTerminar:
                break
            if self.wresult:
                self.wresult.refresh()

        if self.wresult:
            self.wresult.terminar()