12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- namespace ET.Server
- {
- /// <summary>
- /// 晃晃静态常量
- /// </summary>
- public static class HGHHConst
- {
- /// <summary>
- /// 麻将对应数值
- /// 0x01-0x09 万
- /// 0x11-0x19 筒
- /// 0x21-0x29 条
- /// 0x31-0x37 东南西北中发白
- /// </summary>
- public static readonly int[] Values =
- {
- 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,
- 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19,
- 0x21, 0x22, 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29,
- 0x35, 0x36, 0x37
- };
-
- public const int YI_WAN = 0x01;
- public const int DONG_FENG = 0x31;
-
- /** 默认不胡牌 **/
- public const int HU_DEFAULT = 0;
- /** 基本胡 x1 **/
- public const int HU_BASE = 1;
- /** 平胡 (无刻子,都是顺子) x2 **/
- public const int HU_PING = 2;
- /** 碰碰胡 x2 **/
- public const int HU_DUIDUI = 3;
- /** 七对 x4 **/
- public const int HU_7DUI = 4;
- /** 清一色 x8 **/
- public const int HU_QING = 5;
- /** 清一色碰碰胡 x16 **/
- public const int HU_QING_DUIDUI = 6;
- /** 清一色七对 x32 **/
- public const int HU_QING_QIDUI = 7;
- /// <summary>
- /// 牌型藩数 (下标对应上面牌型)
- /// </summary>
- public static int[] ScoreType = { 1, 1, 2, 2, 4, 8, 16, 32 };
-
- /// <summary>
- /// 刻子类型
- /// </summary>
- public enum KeziType
- {
- DEFAULT = 0,
- /** 明杠 */
- MING_GANG = 1,
- /** 回杠 */
- HUI_GANG = 2,
- /** 暗杠 */
- AN_GANG = 3,
- /** 碰 */
- PENG = 4,
- /** 吃 **/
- CHI = 5
- }
-
- public enum Result
- {
- /**平局*/
- PING = 0,
- /**点炮*/
- DIANPAO = 1,
- /**自摸*/
- ZIMO = 2,
- /**抢杠*/
- QIANGGANG = 3,
- /**留局*/
- LIUJU = 4,
- /**杠开*/
- GANGKAI = 5
- }
- }
- }
|