package cactusServer.entities; import java.util.ArrayList; import java.util.HashMap; public class Area { private String name; private ArrayList<HashMap<String, Double>> region = new ArrayList<>(); // 任意個の平面の方程式 private HashMap<String, Boolean> permissions = new HashMap<>(); // エリア内で可能なことの羅列 public Area(String name, ArrayList<HashMap<String, Double>> region, HashMap<String, Boolean> permissions) { this.name = name; this.region = region; this.permissions = permissions; } public String getName() { return name; } public ArrayList<HashMap<String, Double>> getRegion() { return region; } public HashMap<String, Double> getRegion(int index) { return region.get(index); } public HashMap<String, Boolean> getPermissions() { return permissions; } public boolean getPermission(String key) { return permissions.get(key); } }