//import java.util.Iterator; //Importo la interfaz Iterator para iterar el arrayList

import java.util.ArrayList; 


// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
import java.util.Iterator;
// #[regen=yes,id=DCE.D72FB82F-292C-421E-45B9-81F4F8B35E7C]
// </editor-fold> 
public class Tablero {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.742BE8AA-519B-DE18-FAA4-651ABDA0B73A]
    // </editor-fold> 
    private int numTerritorio;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.6A92DEC7-AACA-C402-8EF3-1E4EF28BE747]
    // </editor-fold> 
    private ArrayList<Continentes> mContinentes=new ArrayList();;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.16EA10EA-78EE-8CB2-866C-F225ACBED077]
    // </editor-fold> 
    private Tablero mTablero;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.A02FCE70-B270-3688-6642-228C8723723D]
    // </editor-fold> 
    private ArrayList<Territorios> mTerritorios=new ArrayList();;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.0C8388B5-F68E-DC81-0D40-8077605190CC]
    // </editor-fold> 
    public Tablero (int num,ArrayList<Continentes> mCont,ArrayList<Territorios> mTerri) {
       
        mContinentes=mCont;
        mTerritorios=mTerri;
        numTerritorio=num;
    }
    public boolean territorioLibre(){
        Iterator lista_territorios = mTerritorios.iterator();
        int i =0;
        while(lista_territorios.hasNext()&& i<=41) {
        if(mTerritorios.get(i).getLibre()==true)
            return true;
        else
            i++;
        }
        return false;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.0AEAC3DB-CE74-E13F-C9DE-0703797D724E]
    // </editor-fold> 
    public Territorios getTabla () {
        return null;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.CE2FD438-382A-CEF8-9617-33016160D058]
    // </editor-fold> 
    public void setTabla (Territorios val) {
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.3B2D6BF7-05FF-1856-62E9-A9DB85ECE24B]
    // </editor-fold> 
    public int getNumTerritorio () {
        return 0;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.109C7E78-E8EA-F128-BE60-F803895021B3]
    // </editor-fold> 
    public void setNumTerritorio (int val) {
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.2EA81578-3FC5-81F4-4B33-83CBA9E6835C]
    // </editor-fold> 
    public ArrayList<Continentes> getContinentes () {
        return mContinentes;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.097F7EAC-960A-4139-DC1C-9E284CF2003A]
    // </editor-fold> 
    public Tablero getTablero () {
        return mTablero;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.BEAF8022-5DB8-96C0-408A-A30F04C206B6]
    // </editor-fold> 
    public void setTablero (Tablero val) {
        this.mTablero = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.02EB03D3-6345-B9DF-1F4B-179D696B3279]
    // </editor-fold> 
    public ArrayList<Territorios> getTerritorios () {
        return mTerritorios;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.DC81DEF5-D084-A9D1-3376-FC4FAC0DF04E]
    // </editor-fold> 
    public void setTerritorios (ArrayList<Territorios> val) {
        this.mTerritorios = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.AAE2D779-7F1B-6AED-3EA5-7B3D11E4E758]
    // </editor-fold> 
    public void setContinentes (ArrayList<Continentes> val) {
        this.mContinentes = val;
    }
    
  

}

