111
parent
ccf3e0d076
commit
d4f460c3ae
|
|
@ -18,6 +18,7 @@ public class WinCard {
|
|||
public Stack<Integer> stackHuxi;
|
||||
public List<Integer> cardList;
|
||||
public static final Logger logger = Logger.getLogger(WinCard.class);
|
||||
public boolean activeCardIsUse = false;
|
||||
|
||||
private void push(List<Integer> cardGroup) {
|
||||
this.stack.push(cardGroup);
|
||||
|
|
@ -198,6 +199,10 @@ public class WinCard {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (activeCardIsUse == false && player.seat!=player.getRoom().activeSeat) {
|
||||
activeCard = player.getRoom().activeCard;
|
||||
activeCardIsUse = true;
|
||||
}
|
||||
|
||||
if (activeCard == 0) {
|
||||
activeCard = this.cardList.get(0);
|
||||
|
|
@ -242,7 +247,12 @@ public class WinCard {
|
|||
this.stackHuxi.pop();
|
||||
}
|
||||
} else if (activeCard % 100 == 2) {
|
||||
// logger.info("当前剩余牌----"+this.cardList);
|
||||
// logger.info("当前行动的牌----"+activeCard);
|
||||
|
||||
if (tryShunzi3(activeCard, player)) {
|
||||
// logger.info("吃牌后当前剩余牌----"+this.cardList);
|
||||
|
||||
if (tryWin(player)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue