diff --git a/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java b/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java index 8d52d39..56e797b 100644 --- a/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java +++ b/src/main/java/com/ntlab/irisserver/resources/TurnsRest.java @@ -164,7 +164,7 @@ @PUT //オープンリストの追加 カードをめくったときの色ごとの処理() @Path("/{rid}/game/turns/{tno}/openlist") - public void setOpenList(@PathParam("rid") String rid, @PathParam("tno") Integer tno, @FormParam("cno")Integer cno){ + public void setOpenList(@PathParam("rid") String rid, @PathParam("tno") Integer tno, @FormParam("cno")Integer cno) { RoomManager rm = RoomManager.getInstance(); Room room = rm.getRoom(rid); @@ -176,6 +176,7 @@ card.setIsOpen(true); //turnが続くかの判定 + /* int i; int r = 0; int b = 0; @@ -185,7 +186,7 @@ if(isOpen == true){ if(cell.getColor() == "r")r++; if(cell.getColor() == "b")b++; - } + } } if(card.color == "d"){ t.setEndstate(1); @@ -196,9 +197,9 @@ }else if(card.color == "g"||(card.color != t.getTeam())){ game.createTurn(); } + */ } - //------------------------------------------------------------------------ // rooms/{rid}/game/turns/{tno}/turnstate: