package com.ntlab.irisserver.entities; import java.util.HashMap; 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 Member getMembers(String nick) { Member m = members.get(nick); return m; } public Member getMember(String nick) { Member m = new Member(nick); return m; } public void addMember(String nick){ Member m=new Member(nick); m.setNickname(nick); members.put(nick,m); } }