diff --git a/src/main/java/com/ntlab/irisserver/entities/Turn.java b/src/main/java/com/ntlab/irisserver/entities/Turn.java index 862f48c..0efffa7 100644 --- a/src/main/java/com/ntlab/irisserver/entities/Turn.java +++ b/src/main/java/com/ntlab/irisserver/entities/Turn.java @@ -2,6 +2,11 @@ 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") @@ -13,6 +18,10 @@ @JsonProperty("max") private Integer max; + private Map> questions = new HashMap<>(); + + private List openlist = new ArrayList<>(); + //コンストラクタ //--------------------------------------------------------- @@ -27,11 +36,36 @@ //--------------------------------------------------------- //ゲッター - public String getHint() {return this.hint;} + public String getHint() {return hint;} - public String getTeam() {return this.team;} + public String getTeam() {return team;} - public Integer getMax() {return this.max;} + public Integer getMax() {return max;} + + public List getOpenLists() {return openlist;} + + public Map> getQuestionsMap() {return questions;} + + //--------------------------------------------------------- + //questions操作 + + public List 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();} }