package com.ntlab.irisserver.entities; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; public class Room { String rid = null; int state; String ownerName = null; boolean drawingTimer; int drawingTimerTimes; boolean gameTimer; int gameTimerTimes; int gameTimerFirstThinkingTimes; Map<String,Member> members= new HashMap<>(); public List<Member> getMembers() { List<Member> memberslist = new ArrayList<Member>(members.values()) ; return memberslist; } public Member getMember(String nick) { Member m = members.get(nick); return m; } public void addMember(String nick){ Member m=new Member(nick); m.setNickname(nick); members.put(nick,m); } public int StateRest(){ return 0; } public Room(String rid, String owner) { } }