123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- var BaseDefine = require("BaseDefine")
- var Global = require("Global")
- cc.Class({
- extends: cc.Component,
- properties: {
- },
- statics: {
- GM_PLAYER_JETTON: 2021,
- GM_PLAYER_QS: 2060,
- GAME_SCENE_FREE: 0, //等待开始
- GAME_SCENE_BET: 100, //下注状态
- GAME_SCENE_END: 101, //结束状态
- MAX_AREA: 8,
- MAX_CAR_CNT: 32, //汽车图标个数
- MAX_CHIP_COUNT: 6, //最大筹码个数
- SUB_S_GAME_FREE: 2002, //空闲状态
- SUB_S_SEND_RECORD: 2008,
- CMD_S_StatusFree:
- {
- cbHighTimes: 0, //是否是高倍场 BYTE
- cbTimeLeave: 0, //剩余时间 BYTE
- nChip: [], //筹码配置 int MAX_CHIP_COUNT
- lAreaLimitScore: 0, //区域限制 SCORE
- nMinBetScore: 0 //下注需要的最低金额 int
- },
- CMD_S_StatusPlay:
- {
- cbHighTimes: 0, //是否是高倍场 BYTE
- //全局信息
- cbTimeLeave: 0, //剩余时间 BYTE
- nChip: [], //筹码配置 int MAX_CHIP_COUNT
- lAreaLimitScore: 0, //区域限制 SCORE
- lPlayerJettonScore: [], //玩家下的注 SCORE AREA_MAX
- lAllJettonScore: [], //所有玩家下的注 SCORE AREA_MAX
- lPlayerWinScore: 0, //玩家赢分 SCORE
- lPlayerRestScore: 0, //玩家还剩多少钱 SCORE
- cbStatus: 0, //当前状态1=下注状态,2=结算状态 3=空闲状态 BYTE
- nMinBetScore: 0 //下注需要的最低金额 int
- },
- SUB_S_SEND_CONTROL_INFO: 2050, //群控信息
- CMD_S_ControlInfo:
- {
- RoomSha: 0, //房间杀率 WORD
- RoomWin: 0, //系统赢 WORD
- RoomLost: 0, //系统输 WORD
- RoomSuiRate: 0, //当前随到 WORD
- RoomResult: 0, //控制结果 0无控制 1系统赢 2系统输 BYTE
- QunState: 0, //是否需要判断控制 0不需要1需要 BYTE
- QunStock: 0, //群控库存 SCORE
- IsDanKong: 0, //单控是否生效 1是 BYTE
- DanRate: 0, //单控概率 WORD
- DanStocks: 0, //单控库存 int
- DanSuiRate: 0, //单控随机值 WORD
- DanType: 0, //控制结果0无控制 1控制系统赢 2控制系统输 BYTE
- DanMinBet: 0, //单控门槛 int
- szNickName: [], //单控玩家 TCHAR LEN_NICKNAME
- cbControlValue: 0, //控制值 BYTE
- },
- SUB_S_GAME_FREE: 2002, //游戏空闲
- CMD_S_FreeState:
- {
- cbTimeLeave: 0 //剩余时间 int
- },
- SUB_S_GAME_START: 2003, //游戏开始
- CMD_S_GameStart:
- {
- cbTimeLeave: 0 //剩余时间 BYTE
- },
- SUB_S_PLACE_JETTON: 2004, //用户下注
- CMD_S_PlaceJetton:
- {
- wChairID: 0, //用户位置 WORD
- cbBetArea: 0, //筹码区域 BYTE
- lBetScore: 0, //加注数目 SCORE
- lPlayerRestScore: 0 //下注玩家剩余金币 SCORE
- },
- SUB_S_PLACE_JETTON_FAIL: 2009, //下注失败
- CMD_S_PlaceBetFail:
- {
- wCode: 0 //描述信息编码 WORD
- },
- SUB_S_GAME_END: 2005, //游戏结束
- CMD_S_GameEnd:
- {
- cbEarlyOpenFlag: 0, //提前开牌标识 BYTE
- lPlayAreaScore: [], //玩家成绩 SCORE AREA_MAX
- lPlayerWinScore: 0, //玩家赢的钱 SCORE
- lPlayerRestScore: 0, //玩家还剩多少钱 SCORE
- cbTimeLeave: 0, //结束阶段剩余时间 int
- cbWinIndex: 0, // BYTE
- },
- SUB_C_PLACE_JETTON: 100, //用户下注
- CMD_C_PlaceJetton:
- {
- cbJettonArea: 0, //筹码区域 BYTE
- lJettonScore: 0 //加注数目 SCORE
- },
- SUB_C_CARTEST: 888, //
- CMD_C_CarTest:
- {
- cbCarArea: 0 //区域 BYTE
- },
- AREA_RANG:
- {
- area_h_bsj: 0, //保时捷
- area_h_bm: 1, //宝马
- area_h_bc: 2, //奔驰
- area_h_dz: 3, //大众
- area_l_bsj: 4, //迷你保时捷
- area_l_bm: 5, //迷你宝马
- area_l_bc: 6, //迷你奔驰
- area_l_dz: 7, //迷你大众
- AREA_MAX: 8
- },
- CAR_KIND:
- {
- ik_h_bsj: 1, //保时捷
- ik_h_bm: 2, //宝马
- ik_h_bc: 3, //奔驰
- ik_h_dz: 4, //大众
- ik_l_bsj: 5, //迷你保时捷
- ik_l_bm: 6, //迷你宝马
- ik_l_bc: 7, //迷你奔驰
- ik_l_dz: 8 //迷你大众
- },
- CarMult:
- {
- mult_h_bsj: 40, //保时捷
- mult_h_bm: 30, //宝马
- mult_h_bc: 20, //奔驰
- mult_h_dz: 10, //大众
- mult_l_bsj: 5, //迷你保时捷
- mult_l_bm: 5, //迷你宝马
- mult_l_bc: 5, //迷你奔驰
- mult_l_dz: 5, //迷你大众
- },
- },
- });
|