123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- var BaseDefine = require("BaseDefine")
- var Global = require("Global")
- cc.Class({
- extends: cc.Component,
- properties: {
- },
- statics: {
- GAME_GENRE:BaseDefine.GAME_GENRE_SCORE|BaseDefine.GAME_GENRE_MATCH|BaseDefine.GAME_GENRE_GOLD,
- GAME_STATUS_FREE:BaseDefine.GAME_STATUS_FREE, //等待开始
- GAME_STATUS_PLAY:BaseDefine.GAME_STATUS_PLAY, //游戏状态
- GAME_PLAYER:4,
- HAND_CARD_COUNT:3, //牌数量
- SIDE_NUM:2, //队伍数量
- ROUND_MAX:3,
- MIN_TEAM_CARD_COUNT:3, //组合最少牌数
- MAX_TEAM_COUNT:6, //最大组合数
- MAX_CARD_INDEX: 54,
- MAX_CARD_COUNT: 104,
-
- //服务器命令结构
- SUB_S_GAME_FREE :100, //游戏空闲
- SUB_S_GAME_START :101, //游戏开始
- SUB_S_GAME_END :102, //游戏结束
- SUB_S_GAME_CONTINUE :103, //状态通知
- SUB_S_TRUCO :104,
- SUB_S_TRUCO_CHOOSE :105,
- SUB_S_ROUND_START :106,
- SUB_S_COMPARE_CARD :107,
- SUB_S_TRUCO_SET :108,
- SUB_S_FORCE_LEAVE_CHOOSE :109,
- SUB_S_OPERATE_FAIL :110, //操作失败
- SUB_S_GET_CARD :111, //玩家抓牌
- SUB_S_OUT_CARD :112, //玩家出牌
- SUB_S_TRUSTEE_STATUS :114, //托管信息
- SUB_S_CELL_SCORE :115,
- SUB_S_FINAL_ROUND :116,
- SUB_S_FINAL_CHOOSE :117,
- SUB_S_WAIT_START :120, //
- SUB_S_GAME_INFO :130,
- SUB_C_TEST_GETCARD :200, //
- SUB_C_TEST_SETCARD :201, //
- //操作失败
- OPERATE_OUTCARD :0, //出牌
- OPERATE_GETCARD :1, //抓牌
- OPERATE_FINISHSLOT :2, //胡牌
- //客户端命令结构
- SUB_C_TRUCO :1, //玩家truco
- SUB_C_OUT_CARD :2, //玩家出牌
- SUB_C_TRUCO_CHOOSE :3, //truco选择
- SUB_C_FORCE_LEAVE :4, //强退
- SUB_C_CANCEL_TRUSTEE :5, //取消托管
- SUB_C_FINAL_CHOOSE :6,
- SUB_C_TEST_CARD :100, //测试
- Tile_Color : cc.Enum({
- COLOR_JOKER:4,
- COLOR_HEI:3,
- COLOR_HONG:2,
- COLOR_MEI:1,
- COLOR_FANG:0,
- }),
- Tile_Num : cc.Enum({
- Num_A:1,
- Num_2:2,
- Num_3:3,
- Num_4:4,
- Num_5:5,
- Num_6:6,
- Num_7:7,
- Num_8:8,
- Num_9:9,
- Num_10:10,
- Num_J:11,
- Num_Q:12,
- Num_K:13,
- Num_S_JOKER:14,
- Num_B_JOKER:15,
- }),
- Tile_Weight: cc.Enum({
- Weight_2:2,
- Weight_3:3,
- Weight_4:4,
- Weight_5:5,
- Weight_6:6,
- Weight_7:7,
- Weight_8:8,
- Weight_9:9,
- Weight_10:10,
- Weight_J:11,
- Weight_Q:12,
- Weight_K:13,
- Weight_A:14,
- Weight_S_JOKER:16,
- Weight_B_JOKER:17,
- }),
- Group_Type : cc.Enum({
- Invalid:0,
- PureSequence:1,
- Sequence:2,
- Set:3,
- Joker:4,
- }),
- },
- });
|