Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class Area
- {
- private int _id;
- private SuperArea _superArea;
- private String _name;
- private ArrayList<SubArea> _subAreas = new ArrayList<SubArea>();
- private final int[] cemetery;
- public Area(int id, int superArea,String name, String cemetery)
- {
- _id = id;
- _name = name;
- _superArea = World.getSuperArea(superArea);
- //Si le continent n'est pas encore créer, on le créer et on l'ajoute au monde
- if(_superArea == null)
- {
- _superArea = new SuperArea(superArea);
- World.addSuperArea(_superArea);
- }
- this.cemetery = {Integer.parseInt(cemetery.split(";")[0]), Integer.parseInt(cemetery.split(";")[1])};
- }
- public int[] getCemetery()
- {
- return cemetery;
- }
- public String get_name()
- {
- return _name;
- }
- public int get_id()
- {
- return _id;
- }
- public SuperArea get_superArea()
- {
- return _superArea;
- }
- public void addSubArea(SubArea sa)
- {
- _subAreas.add(sa);
- }
- public ArrayList<Carte> getMaps()
- {
- ArrayList<Carte> maps = new ArrayList<Carte>();
- for(SubArea SA : _subAreas)maps.addAll(SA.getMaps());
- return maps;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment