diff --git a/src/main/java/cactusServer/entities/Area.java b/src/main/java/cactusServer/entities/Area.java new file mode 100644 index 0000000..af3dddb --- /dev/null +++ b/src/main/java/cactusServer/entities/Area.java @@ -0,0 +1,36 @@ +package cactusServer.entities; + +import java.util.ArrayList; +import java.util.HashMap; + +public class Area { + private String name; + private ArrayList> region = new ArrayList<>(); // �C�ӌ‚̕��ʂ̕����� + private HashMap permissions = new HashMap<>(); // �G���A���ʼn”\�Ȃ��Ƃ̗��� + + public Area(String name, ArrayList> region, HashMap permissions) { + this.name = name; + this.region = region; + this.permissions = permissions; + } + + public String getName() { + return name; + } + + public ArrayList> getRegion() { + return region; + } + + public HashMap getRegion(int index) { + return region.get(index); + } + + public HashMap getPermissions() { + return permissions; + } + + public boolean getPermission(String key) { + return permissions.get(key); + } +}