| 19 | • mostrarBaraja(): muestra todas las cartas hasta el final. Es decir, si se saca una carta y |
| 20 | luego se llama al método, este no mostrara esa primera carta.*/ |
| 21 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected