package com.ntlab.irisserver.entities;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Turn {
@JsonProperty("hint")
private String hint;
@JsonProperty("team")
private String team;
@JsonProperty("max")
private Integer max;
private Map<Cell,List<Member>> questions = new HashMap<>();
private List<Cell> openlist = new ArrayList<>();
//コンストラクタ
//---------------------------------------------------------
//セッター
public void setHint(String hint) {this.hint = hint;}
public void setTeam(String team) {this.team = team;}
public void setMax(Integer max) {this.max = max;}
//---------------------------------------------------------
//ゲッター
public String getHint() {return hint;}
public String getTeam() {return team;}
public Integer getMax() {return max;}
public List<Cell> getOpenLists() {return openlist;}
public Map<Cell,List<Member>> getQuestionsMap() {return questions;}
//---------------------------------------------------------
//questions操作
public List<Member> getQuestions(Cell card){return questions.get(card);}
public void addQuestions(Cell card, Member m){questions.get(card).add(m);}
public void delieteQuestions(Cell card, Member m){} //Listのキーが分からない状態での削除どうやんの?
public Integer sizeQuestions(){return questions.size();}
//openlist操作
public Cell getOpenList(Integer num){return openlist.get(num);}
public void addOpenList(Cell card){openlist.add(card);}
public void delieteOpenList(Integer num){openlist.remove(num);}
public Integer sizeOpenList(){return openlist.size();}
}