import java.util.ArrayList; 

// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.85186DCE-12FF-A0B5-4232-574DB1BDEC31]
// </editor-fold> 
public class Continente {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.BC43DBFE-EF53-5D67-2CBA-8F78800E95BF]
    // </editor-fold> 
    private String nomContinente;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.6FFC2C20-C1CE-E0D9-6F84-1B41C5A0DC3E]
    // </editor-fold> 
    private int numTerritorios;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.F2E52259-AD27-53A0-7101-B23EADEB74EE]
    // </editor-fold> 
    private ArrayList<Territorio> lTerritorios;
    
    private int idContinente;
    
    private int bonificacion;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.E265C130-4578-85D9-8006-15FD39543577]
    // </editor-fold> 
    public Continente (String nombre, int id, int bon, int num) {
        nomContinente=nombre;
        idContinente=id;
        bonificacion=bon;
        numTerritorios=num;
        lTerritorios=new ArrayList();
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.319C28EC-4E68-9A2A-8524-515A993BB65A]
    // </editor-fold> 
    public String getNomContinente () {
        return nomContinente;
    }
    
    public void setIdContinente(int idc){
        idContinente=idc;
    }
    
    public int getIdContinente(){
        return idContinente;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.8C170C8E-3631-0E83-6140-68F1B4B154B0]
    // </editor-fold> 
    public void setNomContinente (String val) {
        nomContinente=val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.6AC36E47-9BFF-FFDC-BEA2-319AC0ED96B9]
    // </editor-fold> 
    public int getNumTerritorios () {
        return numTerritorios;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.3493E76B-2294-33A2-4EA8-C7CAD755F9FA]
    // </editor-fold> 
    public void setNumTerritorios (int val) {
        numTerritorios=val;
    }

    public void anadirTerritorios(Territorio t){
        lTerritorios.add(t);
    }
    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.F4937F0A-ADF8-3D9C-2F75-093F09BF9097]
    // </editor-fold> 
    public ArrayList<Territorio> getTerritorio () {
        return lTerritorios;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.3EC7F804-D09C-87D8-64C5-6B0D67B144F1]
    // </editor-fold> 
    public void setTerritorio (ArrayList<Territorio> val) {
        this.lTerritorios = val;
    }
    
    public void setBonificacion(int val){
        this.bonificacion=val;
    }
    public int getBonificacion(){
        return this.bonificacion;
    }

}

