diff --git a/src/main/java/com/ntlab/irisserver/entities/Room.java b/src/main/java/com/ntlab/irisserver/entities/Room.java index b0c6d02..d0b44f9 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Room.java +++ b/src/main/java/com/ntlab/irisserver/entities/Room.java @@ -48,8 +48,7 @@ public List getMembers() { - List memberslist = new ArrayList(members.values()) ; - return memberslist; + return new ArrayList(members.values()); } @@ -58,8 +57,7 @@ } public Member getMember(String nick) { - Member m = members.get(nick); - return m; + return members.get(nick); } public void addMember(String nick){ @@ -71,15 +69,13 @@ return 0; } - public Room(){ - drawingTimer = false; - drawingTimerTimes = 0; - gameTimer = true; - gameTimerTimes = 30; - gameTimerFirstThinkingTimes = 10; - } public Room(String rid, String owner) { + drawingTimer = false; + drawingTimerTimes = 0; + gameTimer = true; + gameTimerTimes = 30; + gameTimerFirstThinkingTimes = 10; this.rid=rid; ownerName=owner; }