Skip to content

Commit

Permalink
feat: mas cositas.
Browse files Browse the repository at this point in the history
Co-authored-by: mariagalindez <mgalindez@fi.uba.ar>
Co-authored-by: agus-germi <agerminario@fi.uba.ar>
Co-authored-by: Sebakrag <sebaskrag@gmail.com>
  • Loading branch information
4 people committed Dec 16, 2023
1 parent c0fb61e commit 95e4b38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ignore:
- "src/main/java/edu/fiuba/algo3/controlador"
- "src/main/java/edu/fiuba/algo3/vista"
- "src/main/java/edu/fiuba/algo3/interfaz"
- "src/main/java/edu/fiuba/algo3/App.java"
- "src/main/java/edu/fiuba/algo3/Main.java"
- "src/main/java/edu/fiuba/algo3/SystemInfo.java"
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void actualizar(String nombreJugadorActual, int ronda) {
if(panelImagen != null){
ImageView imagenJugador = (ImageView) panelImagen.getChildren().get(0);
this.panelJugadorActual.getChildren().clear();
this.panelJugadorActual.getChildren().add(imagenJugador);
this.panelJugadorActual.getChildren().setAll(imagenJugador);
}*/
this.jugadorAnterior = nombreJugadorActual;
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/edu/fiuba/algo3/modelo/Juego.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Juego(Logger logger, Tablero tablero) {

// -------------------------------- PUBLICOS -------------------------------- //

public void iniciarPartida(ArrayList<String> nombresJugadores) {
public void iniciarPartida(ArrayList<String> nombresJugadores) /*throws NoHayJugadoresError*/{
this.crearJugadores(nombresJugadores);
this.ronda = 1;
int cantidadJugadores = nombresJugadores.size();
Expand Down Expand Up @@ -76,7 +76,7 @@ public void agregarObservadorAJugadores(Observador observador) {

// -------------------------------- PRIVADOS -------------------------------- //

private void crearJugadores(ArrayList<String> nombresJugadores) {
private void crearJugadores(ArrayList<String> nombresJugadores) /*throws NoHayJugadoresError*/{
int cantidadJugadores = nombresJugadores.size();
for (int i = 0; i < cantidadJugadores; i++) {
Gladiador gladiador = new Gladiador(this.logger, this.tablero.getCeldaInicial());
Expand Down

0 comments on commit 95e4b38

Please sign in to comment.