package extend.mj.player.rule;

import extend.mj.EXPlayer;
import extend.mj.EXRoom;
import extend.mj.tip.IRuleBase;
import extend.mj.tip.Tip;

/**
 * ���׼��
 * 
 *
 * 2017��11��8��
 * RuleHaidi.java
 */
public class RuleHaidi implements IRuleBase{

	@Override
	public boolean condition(EXPlayer player) {
		EXRoom room = player.getRoom();
		if (room.activeHaidi) {
			return false;
		}
		
		if (room.card.getCount() == 1) {
			player.tipMgr.clean();
			room.tipMap.clear();
			return true;
		}
		return false;
	}

	@Override
	public void action(EXPlayer player, Tip tip) {
		
	}

}
