package extend.zp.player.rulestate;

import com.game.state.StateBase;

import extend.zp.EXPlayer;
import extend.zp.EXRoom;


public class PRWinState extends StateBase<EXPlayer> {
	@Override
	public void enter(EXPlayer owner) {

		EXRoom room = owner.getRoom();

		if (!room.isplaying) {
			owner.stateMachine.curState = owner.stateMachine.lastState;
			return;
		}
		EXPlayer activePlayer = (EXPlayer) owner.room.playerMapBySeat.get(owner.room.activeSeat);
		//System.out.println(activePlayer.drawCard);
		room.winnew(owner,activePlayer);
	}

	@Override
	public void toNextState(EXPlayer owner) {
		// TODO Auto-generated method stub
		//System.out.println("过胡");
	}

	@Override
	public void exit(EXPlayer owner) {
		// TODO Auto-generated method stub

	}

	@Override
	public void execute(EXPlayer owner, String cmd, int gid, Object param) {
		// TODO Auto-generated method stub

	}
}
