package extend.mj.player.state;


import com.game.state.StateBase;

import extend.mj.EXActionEvent;
import extend.mj.EXMainServer;
import extend.mj.EXPlayer;
import extend.mj.PlayerRuleManager;

/**
 * ��ҵȴ�״̬
 * 
 *
 * 2017��8��30��
 * EXPlayerWaitState.java
 */
public class EXPlayerWaitState extends StateBase<EXPlayer> {


	@Override
	public void execute(EXPlayer owner, String cmd, int gid, Object param) {
		// TODO Auto-generated method stub
		switch (cmd) {
		case EXActionEvent.EVENT_OTHER_DISCARD:
			EXMainServer.playerRuleMgr.condition( PlayerRuleManager.OTHER_DISCARD_RULE , owner);
			break;
		case EXActionEvent.EVENT_KONG_WIN:
			owner.forceCheckWin = true;
			EXMainServer.playerRuleMgr.condition( PlayerRuleManager.KONG_HU_RULE , owner);
			owner.forceCheckWin = false;
			break;
		default:
			break;
		}
		
	}

}
