Package BLL

Examples of BLL.GerenciadorJogo


    private void botaoJogarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoJogarActionPerformed
        Conexao cx = new Conexao();
        boolean existe = cx.existePartidaAtiva(nomeJogador);
        int i;
        GerenciadorJogo gj = new GerenciadorJogo();
        if(existe == true){
            i = JOptionPane.showConfirmDialog(null, "Deseja continuar o jogo salvo?");
            if(i == 0){
                gj.executarSistema(5);
            }
            else{
                cx.desativaPartida(nomeJogador);
                gj.executarSistema(1);
            }
        }
        else{
            gj.executarSistema(1);
        }
    }//GEN-LAST:event_botaoJogarActionPerformed
View Full Code Here

TOP

Related Classes of BLL.GerenciadorJogo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.