MCPcopy Create free account
hub / github.com/JerePrograma/FullStackEgg / Baraja

Class Baraja

Etapa3Relaciones/Ejercicio3/src/entidad/Baraja.java:21–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19• mostrarBaraja(): muestra todas las cartas hasta el final. Es decir, si se saca una carta y
20luego se llama al método, este no mostrara esa primera carta.*/
21public class Baraja {
22
23 private ArrayList<Carta> mazo;
24 private ArrayList<Carta> monton;
25
26 public Baraja() {
27 System.out.println("Se creó una baraja");
28 this.mazo = new ArrayList();
29 this.monton = new ArrayList();
30 }
31
32 public Baraja(ArrayList<Carta> mazo) {
33 System.out.println("Se creó una baraja");
34 this.mazo = mazo;
35 this.monton = new ArrayList();
36 }
37
38 public ArrayList<Carta> getMonton() {
39 return monton;
40 }
41
42 public void setMonton(ArrayList<Carta> monton) {
43 this.monton = monton;
44 }
45
46 public ArrayList<Carta> getMazo() {
47 return mazo;
48 }
49
50 public void setMazo(ArrayList<Carta> mazo) {
51 this.mazo = mazo;
52 }
53
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected