TurnのOpenListの変数を変更していくう
1 parent f814706 commit c3b59caf03621136b7471e05ad2fd370c6ef51f5
d-matsuura authored on 6 Oct 2022
Showing 1 changed file
View
8
app/src/main/java/org/ntlab/irisclient/entities/TurnJson.java
 
private String hint;
private String team;
private int max;
private List<Cell> openlist = new ArrayList<>();
private List<Integer> openlist = new ArrayList<>();
 
//コンストラクタ
public TurnJson() {
}
public int getMax() {
return max;
}
 
public List<Cell> getOpenListAll() {return openlist;} //リストそのものを返す。
public List<Integer> getOpenListAll() {return openlist;} //リストそのものを返す。
 
//---------------------------------------------------------
//セッター
 
 
//---------------------------------------------------------
//openlist操作
 
public Cell getOpenListSolo(int num){return openlist.get(num);}
public Integer getOpenListSolo(int num){return openlist.get(num);}
 
public void addOpenList(Cell card){openlist.add(card);}
public void addOpenList(Integer cno){openlist.add(cno);}
 
public void delieteOpenList(int num){openlist.remove(num);}
 
public int sizeOpenList(){return openlist.size();}