package extend.pk;

public class Config {
	/**
	 * 首局出牌规则
	 */
	public static final String ROOM_CONFIG_RULE = "rule";
	
	/**
	 * 第一局系统随机选一张先出，随后赢家先出
	 */
	public static final int RULE_RANDOM = 2;

	/**
	 * 飘分玩法
	 */
	public static final String ROOM_CONFIG_PIAO = "piao";
	
	/**
	 * 打鸟
	 */
	public static final String ROOM_CONFIG_DANIAO = "daniao";
	
	public static final String	ROOM_CONFIG_XIPAI				= "xi_pai";

	public static final String	ROOM_CONFIG_XIPAI_SCORE			= "xi_pai_score";

	public static final String KE_BAO_PAI = "ke_bao_pai"; //可包牌
	public static final String XI_YA_SI_YOU_FEN = "xiyasi_youfen"; //喜压死有分
	public static final String QU_DIAO_34 = "qudiao_34"; //去掉34
	public static final String WU_ZHANG_SUAN_XI = "wu_zhang_suan_xi"; //五张算喜
	public static final String KE_ZUO_LIAN_ZI_2 = "kezuolianzi2"; //2可做连子
	public static final String THREE_WANG_SUAN_XI = "suan_wang_suan_xi"; //3王算喜
	public static final String KEYI_DAI_2 = "keyi3dai2"; //允许3带2
	public static final String dan_sun_zi = "dansunzi"; //可以单顺子
	public static final String an_bao = "anbao"; //允许暗包
	public static final String xi_zai_shou_you_fen = "xizaishouyoufen"; //喜在手有分
	
	//-------------------------------牌类型---------------------------------
	/*
	 * 单牌
	 */
	public final static int TYPE_DANPAI = 1;
	/**
	 * 对子
	 */
	public final static int TYPE_DUIZI = 2;
	/**
	 * 顺子
	 */
	public final static int TYPE_SHUNZI = 3;
	/**
	 * 连对
	 */
	public final static int TYPE_LIANDUI = 4;
	/**
	 * 3带2
	 */
	public final static int TYPE_3_2 = 5;
	/**
	 * 飞机
	 */
	public final static int TYPE_FEIJI = 6;
	/**
	 * 4带3
	 */
	public final static int TYPE_4_3 = 7;
   
	/**
	 * 炸
	 */
	public final static int TYPE_ZHA = 8;

	/**
	 * 4带2
	 */
	public final static int TYPE_4_2 = 9;

	/**
	 * 五十K
	 */
	public final static int TYPE_5_10_K = 10;
	

	//-------------------------------协议---------------------------------
	
	public static final String	GAME_EVT_MING_PAI			= "2117";
	/**
	 * 发牌协议
	 */
	public static final String	GAME_EVT_PLAYER_DEAL			= "2011";
	/**
	 * 出牌
	 */
	public static final String	GAME_DIS_CARD					= "1013";
	/**
	 * 不出
	 */
	public static final String 	GAME_DIS_PASS					= "1014";
	/**
	 * 
	 */
	public static final String GAME_PIAO = "1015";
	/**
	 * 出牌事件
	 */
	public static final String	GAME_EVT_DISCARD				= "2021";
	/**
	 * 出牌提示事件
	 */
	public static final String	GAME_EVT_DISCARD_TIP			= "2004";
	/**
	 * 转盘指向事件
	 */
	public static final String	GAME_EVT_CHANGE_ACTIVE_PLAYER	= "2016";
	/**
	 * pass事件
	 */
	public static final String 	GAME_EVT_PASS 					= "2030";
	/**
	 * 更新喜分数
	 */
	public static final String  GAME_EVT_UPDATE_XI_SCORE       = "2118";
	/**
	 * 更新抓分
	 */
	public static final String  GAME_EVT_UPDATE_ZHUA_SCORE       = "2119";
	
	/**
	 * 小结算
	 */
	public static final String	GAME_EVT_RESULT1				= "2007";
	
	/**
	 * 飘鸟提示
	 */
	public static final String GAME_EVT_PIAO_TIP = "2031"; 
	public static final String GAME_EVT_PIAO = "2032";

	/**
	 * 出牌错误
	 */
	public static final String GAME_EVT_PUT_ERROR	= "2111";

	/**
	 * 看分
	 */
	public static final String GAME_KAN_FEN = "22031";

	/**
	 * 看分返回
	 */
	public static final String GAME_EVT_KAN_FEN = "22032";

	/**
	 * 抢庄
	 */
	public static final String GAME_NOTIFY_QIANG_ZHUANG = "22033";

	/**
	 * 玩家抢庄
	 */
	public static final String GAME_EVT_QIANG_ZHUANG = "22034";

	/**
	 * 通知新的庄家
	 */
	public static final String GAME_EVT_XIN_ZHUANG_JIA = "22035";

	public static final int PUT_ERROR_MUST_OUT_MIN = 0;
	public static final int PUT_ERROR_INVALID_TYPE = 1;
	public static final int PUT_ERROR_MUST_OUT_MAX = 2;
	public static final int PUT_ERROR_BOMB_CHAI =3;
	
	public static final String	SETTLE_WIN_COUNT				= "winnum";
	public static final String	SETTLE_CHUNTIAN_COUNT	= "springnum";
	public static final String	SETTLE_BOMB_COUNT			= "boomnum";
	public static final String	SETTLE_MAX_SCORE				= "maxscore";
}
