| |
---|
| | import cactusServer.entities.CameraState; |
---|
| | import cactusServer.entities.EmoteState; |
---|
| | import cactusServer.entities.IDAddressedEntity; |
---|
| | import cactusServer.entities.Instance; |
---|
| | import cactusServer.entities.Instance.State; |
---|
| | import cactusServer.entities.Player; |
---|
| | import cactusServer.utils.RandomStringGenerator; |
---|
| | |
---|
| | /** |
---|
| |
---|
| | private HashMap<String, Instance> instanceMap = new HashMap<>(); // instanceのIDと実体を管理 |
---|
| | private HashMap<String, Player> playerMap = new HashMap<>(); |
---|
| | |
---|
| | private Instances() { |
---|
| | |
---|
| | //ダミーコード |
---|
| | instanceMap.put("test1", new Instance("test1", State.AVAILABLE, 0)); |
---|
| | instanceMap.put("test2", new Instance("test2", State.AVAILABLE, 1)); |
---|
| | } |
---|
| | |
---|
| | /** |
---|
| | * Instancesクラスを取得する (シングルトン) |
---|
| |
---|
| | |