-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from amurseli/PrincipalTest
Listo para primer Entrega
- Loading branch information
Showing
18 changed files
with
121 additions
and
58 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@startuml | ||
'https://plantuml.com/class-diagram | ||
|
||
abstract class AbstractList | ||
abstract AbstractCollection | ||
interface List | ||
interface Collection | ||
|
||
List <|-- AbstractList | ||
Collection <|-- AbstractCollection | ||
|
||
Collection <|- List | ||
AbstractCollection <|- AbstractList | ||
AbstractList <|-- ArrayList | ||
|
||
class ArrayList { | ||
Object[] elementData | ||
size() | ||
} | ||
|
||
enum TimeUnit { | ||
DAYS | ||
HOURS | ||
MINUTES | ||
} | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ public class Main { | |
public static void main(String[] args) { | ||
App.main(args); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/edu/fiuba/algo3/modelo/efectos/obstaculos/Piquete.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
package edu.fiuba.algo3.modelo.efectos.obstaculos; | ||
|
||
import edu.fiuba.algo3.modelo.Camino; | ||
import edu.fiuba.algo3.modelo.Jugador; | ||
import edu.fiuba.algo3.modelo.efectos.obstaculos.Obstaculo; | ||
import edu.fiuba.algo3.modelo.vehiculos.Vehiculo; | ||
|
||
public class Piquete extends Obstaculo { | ||
protected Piquete(Camino c) { | ||
super(c); | ||
} | ||
|
||
public void aplicarEfecto(Camino caminoRecorrido, Jugador jugador, Vehiculo vehiculo) { | ||
if(posicion.equals(caminoRecorrido)){ | ||
vehiculo.aplicarEfecto(this); | ||
} | ||
} | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,5 @@ public class CambioDeVehiculo extends Sorpresa { | |
protected CambioDeVehiculo(Camino c) { | ||
super(c); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/java/edu/fiuba/algo3/modelo/efectos/sorpresas/SorpresaDesfavorable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package edu.fiuba.algo3.modelo.efectos.sorpresas; | ||
|
||
import edu.fiuba.algo3.modelo.Camino; | ||
import edu.fiuba.algo3.modelo.Jugador; | ||
import edu.fiuba.algo3.modelo.efectos.sorpresas.Sorpresa; | ||
import edu.fiuba.algo3.modelo.vehiculos.Vehiculo; | ||
|
||
public class SorpresaDesfavorable extends Sorpresa { | ||
protected SorpresaDesfavorable(Camino c) { | ||
super(c); | ||
} | ||
|
||
public void aplicarEfecto(Camino caminoRecorrido, Jugador jugador, Vehiculo vehiculo) { | ||
int estoEsParaSalirDelPaso = 5; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/java/edu/fiuba/algo3/modelo/efectos/sorpresas/SorpresaFavorable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
package edu.fiuba.algo3.modelo.efectos.sorpresas; | ||
|
||
import edu.fiuba.algo3.modelo.Camino; | ||
import edu.fiuba.algo3.modelo.Jugador; | ||
import edu.fiuba.algo3.modelo.efectos.sorpresas.Sorpresa; | ||
import edu.fiuba.algo3.modelo.vehiculos.Vehiculo; | ||
|
||
public class SorpresaFavorable extends Sorpresa { | ||
protected SorpresaFavorable(Camino c) { | ||
super(c); | ||
} | ||
|
||
public void aplicarEfecto(Camino caminoRecorrido, Jugador jugador, Vehiculo vehiculo) { | ||
int estoEsParaSalirDelPaso = 5; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...st/edu/fiuba/algo3/modelo/CasosDeUso.java → ...a/algo3/modelo/Entrega_1_/CasosDeUso.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters