⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 micropocha.java

📁 J2ME 技术开发的扑克牌类游戏 是开源代码
💻 JAVA
📖 第 1 页 / 共 4 页
字号:
    
    /** This method returns instance for crearPartida component and should be called instead of accessing crearPartida field directly.//GEN-BEGIN:MVDGetBegin2
     * @return Instance for crearPartida component
     */
    public Form get_crearPartida() {
        if (crearPartida == null) {//GEN-END:MVDGetBegin2
            // Insert pre-init code here
            crearPartida = new Form(null, new Item[] {//GEN-BEGIN:MVDGetInit2
                get_tipoJuego(),
                get_textField1(),
                get_textField2(),
                get_textField3(),
                get_textField4(),
                get_textField5()
            });
            crearPartida.addCommand(get_cancelCommand1());
            crearPartida.addCommand(get_irATablero());
            crearPartida.setCommandListener(this);//GEN-END:MVDGetInit2
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd2
        return crearPartida;
    }//GEN-END:MVDGetEnd2
    
    /** This method returns instance for menuEntrada component and should be called instead of accessing menuEntrada field directly.//GEN-BEGIN:MVDGetBegin3
     * @return Instance for menuEntrada component
     */
    public List get_menuEntrada() {
        if (menuEntrada == null) {//GEN-END:MVDGetBegin3
            // Insert pre-init code here
            menuEntrada = new List(null, Choice.IMPLICIT, new String[] {//GEN-BEGIN:MVDGetInit3
                "Nueva Partida",
                "Cargar Partida",
                "Acerca",
                "Salir"
            }, new Image[] {
                null,
                null,
                null,
                null
            });
            menuEntrada.setCommandListener(this);
            menuEntrada.setSelectedFlags(new boolean[] {
                false,
                false,
                false,
                false
            });//GEN-END:MVDGetInit3
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd3
        return menuEntrada;
    }//GEN-END:MVDGetEnd3
    
    /** This method returns instance for about component and should be called instead of accessing about field directly.//GEN-BEGIN:MVDGetBegin9
     * @return Instance for about component
     */
    public Alert get_about() {
        if (about == null) {//GEN-END:MVDGetBegin9
            // Insert pre-init code here
            about = new Alert("Acerca de esta aplicaci\u00F3n", "Micro Pocha:\n\nprograma para apuntar los resultados de cada mano en la pocha (juego de cartas). Tanto en su versi\u00F3n normal como pocheada (extendida)\n\ntambien puede apuntar otros juegos de cartas\n\nAutor: Enrique Vicent Ramis (eccnil@gmail.com)\n\nversion 1.4.1\n\nnovedades 1.4\n-ahora el guardado se realiza en 2\u00BA plano.\n-corregidos varios men\u00FAs introducidos en la 1.3.x\n\nnovedades 1.3.1\n-compatible con telefonos mas antiguos (cldc 1.0 / midp 1.0)\n\nnovedades 1.3\n-guarda y carga partidas\n-la partida por defecto tiene como ultimo jugador a \"yo\"\n-guardado automatico\n-enlace con la pantalla incial desde la final\n\nnovedades 1.2.3\n-corregido bug en la leyenda del gr\u00E1fico\n-corregido bug el \u00FAltimo jugador no puede empezar siendo mano\n\nnovedades 1.2.2\n-ahora el gr\u00E1fico tiene leyenda.\n\nnovedades 1.2\n-colores en los nombres de los usuarios que indican el color que tienen en el gr\u00E1fico\n-puntos marcadores de quien da (se activa con la tecla #).\n-opcion de reiniciar la partida en el men\u00FA de salir.\n\nbugs corregidos 1.1\n-fucn\u00F3n salir con resultados incompletos\n-modificar un resultado que no sea de la \u00FAltima ronda\n-a\u00F1adida la posibilidad de desempatar\n-esta pantalla", null, AlertType.INFO);//GEN-BEGIN:MVDGetInit9
            about.setTimeout(-2);//GEN-END:MVDGetInit9
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd9
        return about;
    }//GEN-END:MVDGetEnd9
    
    /** This method returns instance for tipoJuego component and should be called instead of accessing tipoJuego field directly.//GEN-BEGIN:MVDGetBegin10
     * @return Instance for tipoJuego component
     */
    public ChoiceGroup get_tipoJuego() {
        if (tipoJuego == null) {//GEN-END:MVDGetBegin10
            // Insert pre-init code here
            tipoJuego = new ChoiceGroup("Tipo de juego:", Choice.EXCLUSIVE, new String[] {//GEN-BEGIN:MVDGetInit10
                "Pocha",
                "Pocheada",
                "Otro"
            }, new Image[] {
                null,
                null,
                null
            });
            tipoJuego.setSelectedFlags(new boolean[] {
                true,
                false,
                false
            });//GEN-END:MVDGetInit10
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd10
        return tipoJuego;
    }//GEN-END:MVDGetEnd10
    
    /** This method returns instance for textField1 component and should be called instead of accessing textField1 field directly.//GEN-BEGIN:MVDGetBegin14
     * @return Instance for textField1 component
     */
    public TextField get_textField1() {
        if (textField1 == null) {//GEN-END:MVDGetBegin14
            // Insert pre-init code here
            textField1 = new TextField("Jugador 1", "", 120, TextField.ANY);//GEN-LINE:MVDGetInit14
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd14
        return textField1;
    }//GEN-END:MVDGetEnd14
    
    /** This method returns instance for textField2 component and should be called instead of accessing textField2 field directly.//GEN-BEGIN:MVDGetBegin15
     * @return Instance for textField2 component
     */
    public TextField get_textField2() {
        if (textField2 == null) {//GEN-END:MVDGetBegin15
            // Insert pre-init code here
            textField2 = new TextField("Jugador 2 (en blanco para ninguno)", null, 120, TextField.ANY);//GEN-LINE:MVDGetInit15
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd15
        return textField2;
    }//GEN-END:MVDGetEnd15
    
    /** This method returns instance for textField3 component and should be called instead of accessing textField3 field directly.//GEN-BEGIN:MVDGetBegin16
     * @return Instance for textField3 component
     */
    public TextField get_textField3() {
        if (textField3 == null) {//GEN-END:MVDGetBegin16
            // Insert pre-init code here
            textField3 = new TextField("Jugador 3 (en blanco para ninguno)", null, 120, TextField.ANY);//GEN-LINE:MVDGetInit16
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd16
        return textField3;
    }//GEN-END:MVDGetEnd16
    
    /** This method returns instance for textField4 component and should be called instead of accessing textField4 field directly.//GEN-BEGIN:MVDGetBegin17
     * @return Instance for textField4 component
     */
    public TextField get_textField4() {
        if (textField4 == null) {//GEN-END:MVDGetBegin17
            // Insert pre-init code here
            textField4 = new TextField("Jugador 4 (en blanco para ninguno)", null, 120, TextField.ANY);//GEN-LINE:MVDGetInit17
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd17
        return textField4;
    }//GEN-END:MVDGetEnd17
    
    /** This method returns instance for textField5 component and should be called instead of accessing textField5 field directly.//GEN-BEGIN:MVDGetBegin18
     * @return Instance for textField5 component
     */
    public TextField get_textField5() {
        if (textField5 == null) {//GEN-END:MVDGetBegin18
            // Insert pre-init code here
            textField5 = new TextField("Jugador 5 (en blanco para ninguno)", "Yo", 120, TextField.ANY);//GEN-LINE:MVDGetInit18
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd18
        return textField5;
    }//GEN-END:MVDGetEnd18
    
    /** This method returns instance for cancelCommand1 component and should be called instead of accessing cancelCommand1 field directly.//GEN-BEGIN:MVDGetBegin19
     * @return Instance for cancelCommand1 component
     */
    public Command get_cancelCommand1() {
        if (cancelCommand1 == null) {//GEN-END:MVDGetBegin19
            // Insert pre-init code here
            cancelCommand1 = new Command("Cancel", Command.CANCEL, 2);//GEN-LINE:MVDGetInit19
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd19
        return cancelCommand1;
    }//GEN-END:MVDGetEnd19
    
    /** This method returns instance for irATablero component and should be called instead of accessing irATablero field directly.//GEN-BEGIN:MVDGetBegin21
     * @return Instance for irATablero component
     */
    public Command get_irATablero() {
        if (irATablero == null) {//GEN-END:MVDGetBegin21
            // Insert pre-init code here
            irATablero = new Command("Ok", Command.OK, 1);//GEN-LINE:MVDGetInit21
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd21
        return irATablero;
    }//GEN-END:MVDGetEnd21
    
    /** This method returns instance for noImplementado component and should be called instead of accessing noImplementado field directly.//GEN-BEGIN:MVDGetBegin23
     * @return Instance for noImplementado component
     */
    public Alert get_noImplementado() {
        if (noImplementado == null) {//GEN-END:MVDGetBegin23
            // Insert pre-init code here
            noImplementado = new Alert("No Implementado Aun", "Esta opcion todav\u00EDa no ha sido implementada", null, AlertType.INFO);//GEN-BEGIN:MVDGetInit23
            noImplementado.setTimeout(-2);//GEN-END:MVDGetInit23
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd23
        return noImplementado;
    }//GEN-END:MVDGetEnd23
    
    /** This method returns instance for salida component and should be called instead of accessing salida field directly.//GEN-BEGIN:MVDGetBegin26
     * @return Instance for salida component
     */
    public Form get_salida() {
        if (salida == null) {//GEN-END:MVDGetBegin26
            // Insert pre-init code here
            salida = new Form("Resultdos", new Item[] {//GEN-BEGIN:MVDGetInit26
                get_imageItem3(),
                get_stringItem1(),
                get_imageItem2(),
                get_stringItem2()
            });
            salida.addCommand(get_exitCommand1());
            salida.addCommand(get_cancelCommand2());
            salida.addCommand(get_itemCommand1());
            salida.addCommand(get_reset());
            salida.setCommandListener(this);//GEN-END:MVDGetInit26
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd26
        return salida;
    }//GEN-END:MVDGetEnd26
    
    /** This method returns instance for exitCommand1 component and should be called instead of accessing exitCommand1 field directly.//GEN-BEGIN:MVDGetBegin27
     * @return Instance for exitCommand1 component
     */
    public Command get_exitCommand1() {
        if (exitCommand1 == null) {//GEN-END:MVDGetBegin27
            // Insert pre-init code here
            exitCommand1 = new Command("Terminar", Command.EXIT, 1);//GEN-LINE:MVDGetInit27
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd27
        return exitCommand1;
    }//GEN-END:MVDGetEnd27
    
    /** This method returns instance for cancelCommand2 component and should be called instead of accessing cancelCommand2 field directly.//GEN-BEGIN:MVDGetBegin29
     * @return Instance for cancelCommand2 component
     */
    public Command get_cancelCommand2() {
        if (cancelCommand2 == null) {//GEN-END:MVDGetBegin29
            // Insert pre-init code here
            cancelCommand2 = new Command("Volver", Command.CANCEL, 1);//GEN-LINE:MVDGetInit29
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd29
        return cancelCommand2;
    }//GEN-END:MVDGetEnd29
    
    /** This method returns instance for exitCommand3 component and should be called instead of accessing exitCommand3 field directly.//GEN-BEGIN:MVDGetBegin31
     * @return Instance for exitCommand3 component
     */
    public Command get_exitCommand3() {
        if (exitCommand3 == null) {//GEN-END:MVDGetBegin31
            // Insert pre-init code here
            exitCommand3 = new Command("Exit", Command.EXIT, 1);//GEN-LINE:MVDGetInit31
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd31
        return exitCommand3;
    }//GEN-END:MVDGetEnd31
    
    /** This method returns instance for tablero component and should be called instead of accessing tablero field directly.//GEN-BEGIN:MVDGetBegin32
     * @return Instance for tablero component
     */
    public telefono.Tablero get_tablero() {
        if (tablero == null) {//GEN-END:MVDGetBegin32
            // Insert pre-init code here
            tablero = new telefono.Tablero(null, this);//GEN-BEGIN:MVDGetInit32
            tablero.addCommand(get_pantallaGrafico());
            tablero.addCommand(get_SalirDeTablero());
            tablero.addCommand(get_GuardarComoCommand());
            tablero.setCommandListener(this);//GEN-END:MVDGetInit32
            // Insert post-init code here
        }//GEN-BEGIN:MVDGetEnd32
        return tablero;
    }//GEN-END:MVDGetEnd32
    
    /** This method returns instance for pantallaGrafico component and should be called instead of accessing pantallaGrafico field directly.//GEN-BEGIN:MVDGetBegin33
     * @return Instance for pantallaGrafico component

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -