package extend.mj.player.state;

import com.taurus.core.entity.ITObject;

import extend.mj.EXActionEvent;
import extend.mj.EXPlayer;

/**
 * ���������ʾ�ȴ�
 * 
 *
 * 2017��8��30��
 * EXPlayerKongWinState.java
 */
public class EXPlayerKongWinState extends EXPlayerTipState{
	
	@Override
	public void enter(EXPlayer owner) {
		// TODO Auto-generated method stub
		super.enter(owner);
		owner.getRoom().tipMap.put(owner.playerid, owner.tipMgr);

	}

	@Override
	public void exit(EXPlayer owner) {
		// TODO Auto-generated method stub
		super.exit(owner);
		owner.getRoom().tipMap.remove(owner.playerid);

	}
	
	@Override
	public void execute(EXPlayer owner, String cmd, int gid, Object param) {
		if (cmd.equals(EXActionEvent.EVENT_ACTION)) {
			ITObject netParam = (ITObject) param;
			int id = netParam.getInt("id");
			owner.tipMgr.choicAction(id);
		}
	}

}
