Examples of Jugador


Examples of entidades.Jugador

    /**
     * Método para crear y añadir los NPC
     */
    private void crearNPC() {
        player = new Jugador(120, 92, ResourceManager.getParameter("SpriteProtagonista"), 42, 57);
        NPC npc1 = new NPC(124, 80, ResourceManager.getParameter("SpriteNPC_mas01"), 45, 57, DIR_ABA, "npc1", "npc1_p");
        NPC npc2 = new NPC(116, 48, ResourceManager.getParameter("SpriteNPC_mas02"), 48, 60, DIR_DER, "npc2", "npc2_p");
        NPC npc3 = new NPC(115, 54, ResourceManager.getParameter("SpriteNPC_fem01"), 48, 57, DIR_IZQ, "npc3", "npc3_p");
        NPC npc4 = new NPC(115, 76, ResourceManager.getParameter("SpriteNPC_fem02"), 42, 60, DIR_DER, "npc4", "npc4_p");
        NPC npc5 = new NPC(115, 42, ResourceManager.getParameter("SpriteNPC_mas06"), 48, 60, DIR_DER, "npc5", "npc5_p");
View Full Code Here

Examples of entidades.Jugador

    /**
     * Método para crear y añadir los NPC
     */
    private void crearNPC() {
        player = new Jugador(20, 5, ResourceManager.getParameter("SpriteProtagonista"), 42, 57);
        NPC julio = new NPC(17, 8, ResourceManager.getParameter("SpriteNPC_Profe_Julio"), 42, 57, DIR_DER, "julio", "julio_c");
        NPC monica = new NPC(17, 11, ResourceManager.getParameter("SpriteNPC_Profe_Monica"), 42, 57, DIR_DER, "monica", "monica_c");
        NPC quim = new NPC(23, 8, ResourceManager.getParameter("SpriteNPC_Profe_Quim"), 42, 57, DIR_IZQ, "quim", "quim_c");
        NPC nacho = new NPC(23, 11, ResourceManager.getParameter("SpriteNPC_Profe_Nacho"), 42, 57, DIR_IZQ, "nacho", "nacho_c");
        NPC npc1 = new NPC(13, 11, ResourceManager.getParameter("SpriteNPC_mas11"), 45, 57, DIR_ARR, "npc1", "npc1_c");
View Full Code Here

Examples of models.Jugador

            vista.deshabilitarTablero();
            this.gameStarted = false;
            if (!resueltoPorSistema){
                vista.showInfoMessage("Felicitaciones a finalizado el juego Correctamente");
                configuration.setNamePlayer(vista.getPlayerName());
                player = new Jugador(configuration,partida);
                topTen.addJugada(player);               
            }
            this.resueltoPorSistema = false;
        }
    }
View Full Code Here

Examples of org.sfsoft.serializar.base.Jugador

 
  // Da de alta un nuevo jugador. Método invocado por el botón correspondiente
  // FIXME No comprueba si se dan de alta jugadores repetidos (mismo nombre y apellidos)
  private void nuevoJugador() {
 
    Jugador jugador = null;
    DateFormat formatFecha = DateFormat.getDateInstance(DateFormat.SHORT, Locale.FRANCE);
   
    // Nombre y apellidos son datos obligatorios
    if ((this.txtNombreJugador.equals("")) || (this.txtApellidos.getText().equals(""))) {
      Util.mensajeError("Debes rellenar los campos obligatorios");
      return;
    }
   
    try {
      jugador = new Jugador();
      jugador.setNombre(this.txtNombreJugador.getText());
      jugador.setApellidos(this.txtApellidos.getText());
      if (this.txtFechaNacimiento.getText().equals("")) {
        jugador.setFechaNacimiento(null);
      } else {
        jugador.setFechaNacimiento(formatFecha.parse(this.txtFechaNacimiento.getText()));
      }
      jugador.setDireccion(this.txtDireccion.getText());
      jugador.setTelefono(this.txtTelefono.getText());
      jugador.setEquipo(this.cbEquipo.getEquipo());
     
      this.jugadores.add(jugador);
      Ficheros.escribirObjeto(this.jugadores, Constantes.FICHERO_JUGADORES);
     
      this.panelEstado.setMensaje("Jugador dado de alta correctamente");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.