/** * 加入德州 * @param playerList 玩家列表 * @param roomType 房间类型 * @param texasRoomEnum sng或普通房 */ public void GC_JOIN_TEXAS(InputMessage data) { int i, size; ArrayList playerList = new ArrayList(); size = data.GetShort(); for (i = 0; i < size; i++) { TexasRoomPlayerInfoData playerList_Datas = new TexasRoomPlayerInfoData(); playerList_Datas.playerId = data.GetLong(); playerList_Datas.name = data.GetString(); //玩家名字 playerList_Datas.img = data.GetString(); //玩家图片 playerList_Datas.playerState = data.GetInt(); //玩家状态 playerList_Datas.coins = data.GetLong(); playerList_Datas.vip = data.GetInt(); //vip playerList_Datas.pos = data.GetInt(); //位置 playerList_Datas.currentBet = data.GetLong(); playerList_Datas.allBet = data.GetLong(); playerList.Add(playerList_Datas); } int roomType = data.GetInt(); int texasRoomEnum = data.GetInt(); TexasHandler.Instance().GC_JOIN_TEXAS(playerList, roomType, texasRoomEnum); }
/** * 德州玩家坐下 * @param playerJoin 玩家列表 */ public void GC_TEXAS_SEAT(InputMessage data) { TexasRoomPlayerInfoData playerJoin = new TexasRoomPlayerInfoData(); playerJoin.playerId = data.GetLong(); //玩家id playerJoin.name = data.GetString(); //玩家名字 playerJoin.img = data.GetString(); //玩家图片 playerJoin.playerState = data.GetInt(); //玩家状态 playerJoin.coins = data.GetLong(); //筹码 playerJoin.vip = data.GetInt(); //vip playerJoin.pos = data.GetInt(); //位置 playerJoin.currentBet = data.GetLong(); //当前押注 playerJoin.allBet = data.GetLong(); //总押注 TexasHandler.Instance().GC_TEXAS_SEAT(playerJoin); }