package extend.pk;

public class Config {
	public static final String  GAME_DANIAO                     = "daniao";//打鸟 0不打，1:10,2:20,3:50

	public static final int XIPAI_SCORE = 10;

	/**
	 * 玩家的初始手牌数
	 */
	public static final String ROOM_CONFIG_CARDNUM = "leaf";
	
	/**
	 * 炸弹带的规则
	 */
	public static final String ROOM_CONFIG_SIDAI = "fourBeltThree";

	public static final String ROOM_CONFIG_SIDAI_2 = "fourDaiTwo";
	public static final String ROOM_CONFIG_SIDAI_3 = "fourDaiThree";
	
	/**
	 * 首局出牌规则
	 */
	public static final String ROOM_CONFIG_RULE = "rule";
	
	/**
	 * 第一局系统随机选一张先出，随后赢家先出
	 */
	public static final int RULE_RANDOM = 2;
	/**
	 * 第一局黑桃3先出，随后赢家先出
	 */
	public static final int RULE_HEITAO3 = 1;
	
	/**
	 * 炸弹不能拆
	 */
	public static final String ROOM_CONFIG_DEMOLITION = "demolition";
	/**
	 * 可不必出
	 */
	public static final String ROOM_CONFIG_WILL_BE_OUT = "willBeOut";
	
	/**
	 * 3条a是否是炸弹
	 */
	public static final String ROOM_CONFIG_THREE_A = "threeA";
	
	/**
	 * 红桃10分翻倍
	 */
	public static final String ROOM_CONFIG_HEARTTEN = "heartten";
	
	/**
	 * 飞机少带可接完
	 */
	public static final String ROOM_CONFIG_PLANE_LACK = "planelack";
	
	/**
	 * 三张少带可接完
	 */
	public static final String ROOM_CONFIG_THREE_LACK = "threelack";
	
	/**
	 * 4个3333 或者 2 AAA 算春天
	 */
	public static final String ROOM_CONFIG_MINBOOM = "minboom";
	
	/**
	 * 自动托管功能
	 */
	public static final String ROOM_CONFIG_AUTO_TUOGUAN = "autotuoguan";
	
	
	
	/**
	 * 飘分玩法
	 */
	public static final String ROOM_CONFIG_PIAO = "piao";
	
	public static final String	GAME_NIAO					= "831";

	public static final String	GAME_EVT_DANIAO_TIP				= "832";

	public static final String	GAME_EVT_DANIAO					= "833";//action
	
	/**
	 * 三带 飞机带
	 */
	public static final String ROOM_CONFIG_SANDAIDAN = "sandaidan";

	public static final String	ROOM_CONFIG_XIPAI				= "xi_pai";

	public static final String	ROOM_CONFIG_XIPAI_SCORE			= "xi_pai_score";
	
	//-------------------------------牌类型---------------------------------
	/**
	 * 单牌
	 */
	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;
	

	//-------------------------------协议---------------------------------
	
	public static final String	GAME_EVT_MING_PAI			= "2117";
	/**
	 * 打鸟协议
	 */
	public static final String	GAME_PLAYER_DANIAO			= "2012";
	
	/**
	 * 打鸟协议
	 */
	public static final String	GAME_PLAYER_DANIAO_TIP			= "2042";

	/**
	 * 出牌
	 */
	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_BOM_SCORE       = "2118";
	
	/**
	 * 小结算
	 */
	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_EVT_PLAYER_DEAL			= "2011";
	
	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";
}
