Newer
Older
IrisServer / src / main / java / com / ntlab / irisserver / entities / Room.java
k-suzuki on 24 May 2022 1006 bytes StateRest Roomを追加しました。
package com.ntlab.irisserver.entities;

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 =  members.values();
                return null;

        }

        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);
        }
        public int StateRest(){
                return 0;
        }
        public void Room(String rid, String owner) {
        }
}