package extend.mj.player.rulestate;

import com.game.state.StateBase;
import extend.mj.*;

/**
 * ��Ӧ���ƴ���״̬
 *
 *
 * 2017��8��30��
 * PROtherWinState.java
 */
public class PRPongKongWinState extends StateBase<EXPlayer>{

    @Override
    public void enter(EXPlayer owner) {
        EXRoom room = (EXRoom) owner.room;
        owner.winer = 1;

        EXPlayer activePlayer =  (EXPlayer)room.playerMapBySeat.get(owner.room.activeSeat);
        activePlayer.winer = 2;
        activePlayer.last_winer = 2;


        EXMainServer.gameCtr.winEvent(owner,activePlayer.seat,room.activeCard);


        if (room.lastBankerSeat == 0)
        {
            room.lastBankerSeat = room.bankerSeat;
        }
        room.bankerSeat = owner.seat;
        room.winCount += 1;

        owner.winCard = room.activeCard;

        room.winCallback_qiangkong( owner ,owner.winCard);
    }

}
